Commit Graph

9039 Commits

Author SHA1 Message Date
rubidium dce1b33196 (svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code. 2008-04-23 22:16:41 +00:00
peter1138 10ab24a5f1 (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 6939569362 (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 1ba6e3deeb (svn r12854) -Codechange: make drawing of rail catenary a bit faster 2008-04-23 20:22:31 +00:00
smatz 459259aeec (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 ccfe024a2a (svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles 2008-04-23 19:07:18 +00:00
glx e3ca91dc15 (svn r12850) -Fix (r12848): compilation was broken for some platforms 2008-04-23 13:36:52 +00:00
peter1138 24cccc8333 (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 fff763b5ce (svn r12847) -Cleanup: Identing and variable scope 2008-04-23 11:57:58 +00:00
rubidium 39a715f1f3 (svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced. 2008-04-23 00:16:21 +00:00
rubidium 2d860049a7 (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 501b89b8de (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 46bd824b3e (svn r12842) -Codechange [FS#1604]: scale message history by map size 2008-04-22 21:18:55 +00:00
peter1138 c5211354a6 (svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically. 2008-04-22 18:20:41 +00:00
belugas da134d5a39 (svn r12837) -Codechange: Alignment of widget array 2008-04-22 14:40:09 +00:00
rubidium 845b827fbc (svn r12836) -Fix: SunOS non-dedicated server compilation. 2008-04-21 23:04:05 +00:00
peter1138 5dcd689f56 (svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication. 2008-04-21 20:50:58 +00:00
frosch 173ac52da5 (svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'. 2008-04-21 17:04:17 +00:00
rubidium 5ef8c01ce7 (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 22140d82c6 (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 a40bba8bac (svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations. 2008-04-21 11:29:01 +00:00
rubidium 2a779a5e10 (svn r12816) -Fix: the cargo count in the performance rating window could be wrong. 2008-04-21 09:27:47 +00:00
rubidium cea98ea0e6 (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 dea4738382 (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 c332c68170 (svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often. 2008-04-21 07:57:51 +00:00
glx 4395bda7b5 (svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace() 2008-04-20 21:49:57 +00:00
peter1138 b418ee5a4c (svn r12809) -Fix (r1704): Possible out of bounds array access. 2008-04-20 21:38:20 +00:00
glx f7d3d879c5 (svn r12808) -Fix: enforce autorenew values range in command
-Fix: typo in english.txt
2008-04-20 21:36:41 +00:00
rubidium fccfcd093b (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 b139756e2b (svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp 2008-04-20 11:12:07 +00:00
rubidium f55ffd14bd (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 12ae3a2194 (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 181b36ca0b (svn r12801) -Codechange: remove the dependency of function.h in town_map.h 2008-04-20 08:43:31 +00:00
rubidium 15680e477a (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 4f8409daf6 (svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+ 2008-04-19 23:34:42 +00:00
peter1138 210d757499 (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 de015fbf90 (svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own 2008-04-19 22:51:52 +00:00
rubidium c884d82e46 (svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did. 2008-04-19 21:51:05 +00:00
rubidium 0e624275ee (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 c360e71e3c (svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp 2008-04-19 19:01:57 +00:00
peter1138 4f2c2656e7 (svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln) 2008-04-19 18:03:24 +00:00
bjarni 01549e1574 (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 ad3ef0fb26 (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 752c8d8f2e (svn r12790) -Codechange: code style fixes. Patch by Alberth. 2008-04-19 13:28:48 +00:00
rubidium 24b5c91039 (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 1dcf912f06 (svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth. 2008-04-19 13:07:37 +00:00
rubidium c84fe27ca9 (svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth. 2008-04-19 13:05:05 +00:00
rubidium 118a680fd3 (svn r12786) -Change: remove more function from functions.h. 2008-04-19 13:04:29 +00:00
rubidium 222988603f (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 161b588631 (svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp. 2008-04-19 10:18:38 +00:00