Commit Graph

9290 Commits

Author SHA1 Message Date
rubidium
29ce273067 (svn r12858) -Add: small piece of code that can help hunting desyncs. Has to be enabled by --enable-desync-debug=1 though. 2008-04-23 22:17:33 +00:00
rubidium
2b85217bfe (svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code. 2008-04-23 22:16:41 +00:00
peter1138
7c8fe9791b (svn r12856) -Fix: Taking r12377 further, ensure that prop 25 is set for all vehicles in the consist before other properties. 2008-04-23 21:55:24 +00:00
rubidium
d56827a9a9 (svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though. 2008-04-23 20:56:08 +00:00
smatz
a204a3b70e (svn r12854) -Codechange: make drawing of rail catenary a bit faster 2008-04-23 20:22:31 +00:00
smatz
112afdf7d8 (svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases 2008-04-23 19:47:23 +00:00
smatz
ac0cfcde33 (svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles 2008-04-23 19:07:18 +00:00
glx
1461ba9d35 (svn r12850) -Fix (r12848): compilation was broken for some platforms 2008-04-23 13:36:52 +00:00
peter1138
b471c5d312 (svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering. 2008-04-23 12:03:47 +00:00
peter1138
616cd60651 (svn r12847) -Cleanup: Identing and variable scope 2008-04-23 11:57:58 +00:00
rubidium
420b1b53d3 (svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced. 2008-04-23 00:16:21 +00:00
rubidium
97f78133d2 (svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway. 2008-04-23 00:14:49 +00:00
bjarni
80a0435ba8 (svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
The code to open this window is also unified for all vehicle types
2008-04-22 23:16:36 +00:00
glx
2c057b318e (svn r12842) -Codechange [FS#1604]: scale message history by map size 2008-04-22 21:18:55 +00:00
peter1138
f767baba58 (svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically. 2008-04-22 18:20:41 +00:00
belugas
931aecda9f (svn r12837) -Codechange: Alignment of widget array 2008-04-22 14:40:09 +00:00
rubidium
8637e6afa1 (svn r12836) -Fix: SunOS non-dedicated server compilation. 2008-04-21 23:04:05 +00:00
peter1138
a05e9b4c6b (svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication. 2008-04-21 20:50:58 +00:00
frosch
f43661e790 (svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'. 2008-04-21 17:04:17 +00:00
rubidium
e947fde701 (svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits. 2008-04-21 14:33:33 +00:00
rubidium
bbe13a0623 (svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey. 2008-04-21 13:45:03 +00:00
rubidium
5a17e6b395 (svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations. 2008-04-21 11:29:01 +00:00
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