Commit Graph

9218 Commits

Author SHA1 Message Date
rubidium
23c0017272 (svn r12816) -Fix: the cargo count in the performance rating window could be wrong. 2008-04-21 09:27:47 +00:00
rubidium
c5ac9ee678 (svn r12815) -Codechange: reshuffle some variables in the CargoPacket struct saving 4 of 36 bytes with a 32 bit compiler and 8 of 48 bytes on 64 bit compiler per cargo packets. There are generally more cargopackets in game than vehicles. 2008-04-21 09:20:42 +00:00
rubidium
4ce50a0d64 (svn r12814) -Codechange: reshuffle some variables in the Vehicle struct saving 20 bytes with a 32 bit compiler and 32 bytes on 64 bit compiler per vehicle. 2008-04-21 08:35:27 +00:00
rubidium
47ebab771f (svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often. 2008-04-21 07:57:51 +00:00
glx
9a8d9c4ae5 (svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace() 2008-04-20 21:49:57 +00:00
peter1138
dbb4dcaf5c (svn r12809) -Fix (r1704): Possible out of bounds array access. 2008-04-20 21:38:20 +00:00
glx
4a4da1eedf (svn r12808) -Fix: enforce autorenew values range in command
-Fix: typo in english.txt
2008-04-20 21:36:41 +00:00
rubidium
650651064b (svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan. 2008-04-20 11:40:33 +00:00
rubidium
8186344628 (svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp 2008-04-20 11:12:07 +00:00
rubidium
40b19f3997 (svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a uniform naming of the thing instead of using both names for the same thing. 2008-04-20 10:13:54 +00:00
rubidium
faa0ba46d0 (svn r12802) -Fix (r12800): do not commit from the src directory when you want to commit source.list too. 2008-04-20 09:43:30 +00:00
rubidium
d010ae9408 (svn r12801) -Codechange: remove the dependency of function.h in town_map.h 2008-04-20 08:43:31 +00:00
rubidium
ba0532b595 (svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions. 2008-04-20 08:22:59 +00:00
peter1138
61ba65846a (svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+ 2008-04-19 23:34:42 +00:00
peter1138
3b7558b89c (svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes) 2008-04-19 23:19:12 +00:00
bjarni
fa4967d845 (svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own 2008-04-19 22:51:52 +00:00
rubidium
af5775a5ec (svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did. 2008-04-19 21:51:05 +00:00
rubidium
a63974547b (svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading. 2008-04-19 21:23:42 +00:00
bjarni
fa549be09e (svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp 2008-04-19 19:01:57 +00:00
peter1138
2d659ac8bd (svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln) 2008-04-19 18:03:24 +00:00
bjarni
db403cbe92 (svn r12792) -Codechange: [autoreplace] added a function to figure out if a replacement is needed and if so, to which EngineID
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
2008-04-19 17:47:56 +00:00
bjarni
44145548ea (svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
This allowed cleaning up the code in MaybeReplaceVehicle()
2008-04-19 15:14:20 +00:00
rubidium
a9775dfcc9 (svn r12790) -Codechange: code style fixes. Patch by Alberth. 2008-04-19 13:28:48 +00:00
rubidium
51c7ba39a4 (svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth. 2008-04-19 13:17:19 +00:00
rubidium
99733b2b3e (svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth. 2008-04-19 13:07:37 +00:00
rubidium
081f627018 (svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth. 2008-04-19 13:05:05 +00:00
rubidium
af34ce0b5d (svn r12786) -Change: remove more function from functions.h. 2008-04-19 13:04:29 +00:00
rubidium
bfd2cac6e2 (svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan. 2008-04-19 12:50:02 +00:00
rubidium
0670ec6ee1 (svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp. 2008-04-19 10:18:38 +00:00
rubidium
1b867382d6 (svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader. 2008-04-19 08:34:03 +00:00
rubidium
136e26925e (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. 2008-04-19 08:21:55 +00:00
rubidium
312d54bc3b (svn r12780) -Fix: the null blitter did segfault. 2008-04-18 23:32:10 +00:00
rubidium
7e5639ccea (svn r12779) -Codechange: remove a few constants from openttd.h. 2008-04-18 21:49:38 +00:00
smatz
6813a17d15 (svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions 2008-04-18 21:38:36 +00:00
smatz
3fe8c58257 (svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute 2008-04-18 21:33:21 +00:00
egladil
cd7536123b (svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion. 2008-04-18 21:21:25 +00:00
rubidium
36d3553b9b (svn r12773) -Codechange: replace some magic numbers with enums. 2008-04-18 19:26:52 +00:00
rubidium
c7e2ca8cfd (svn r12772) -Codechange: some vehicle.cpp coding style. 2008-04-18 17:53:06 +00:00
rubidium
6d25cd50dd (svn r12771) -Codechange: remove more from variables.h. 2008-04-18 16:51:54 +00:00
glx
c37935f53e (svn r12770) -Add: check for missing (forgotten) header files in the generate.vbs script. 2008-04-18 16:20:04 +00:00
rubidium
5c5bd70284 (svn r12769) -Codechange: some coding style cleanups. 2008-04-18 15:18:16 +00:00
rubidium
44128682cf (svn r12768) -Codechange: move the statusbar GUI to it's own file. 2008-04-18 15:13:45 +00:00
rubidium
bc37ae3f2a (svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files. 2008-04-18 15:11:39 +00:00
rubidium
8857f5057f (svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob. 2008-04-18 10:58:11 +00:00
rubidium
d46d8d9c9d (svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h. 2008-04-18 10:16:51 +00:00
rubidium
7d234fa069 (svn r12764) -Add: check for missing (forgotten) header files in the generate script. 2008-04-18 09:49:23 +00:00
rubidium
6de7106d0f (svn r12763) -Fix: some headers were missing/still included in the MSVC project files. 2008-04-18 09:40:00 +00:00
rubidium
f4b07a78c4 (svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs). 2008-04-18 04:54:09 +00:00
rubidium
ca1f8fbe2e (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 2008-04-18 04:37:06 +00:00
belugas
d2b55e7afd (svn r12760) -Fix(r12759): Remove a now useless comment 2008-04-18 03:20:59 +00:00