Commit Graph

9000 Commits

Author SHA1 Message Date
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
belugas
13dcf2ed7e (svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits. 2008-04-18 03:17:22 +00:00
belugas
ed497b4fa7 (svn r12758) -Fix(r4712, r12745): Use a bool when it's about boolean evaluation. a TileIndex is hardly a bool, of course of course. Thanks for good old MSVC warnings. 2008-04-18 01:35:17 +00:00
rubidium
18e64b28e2 (svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location. 2008-04-17 21:21:01 +00:00
smatz
fa4b5b1c18 (svn r12756) -Cleanup: variable scope and coding style in station* 2008-04-17 20:03:28 +00:00
glx
72c16c4de7 (svn r12755) -Fix (r12706): aborting map generation was not properly handled 2008-04-17 19:53:13 +00:00
rubidium
6d063c3ad6 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 2008-04-17 19:10:30 +00:00
smatz
ec588da9e8 (svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used 2008-04-17 18:24:45 +00:00
rubidium
b0e687f60c (svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo. 2008-04-17 18:12:53 +00:00
rubidium
6dc210b171 (svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory. 2008-04-17 11:47:22 +00:00
rubidium
c7357bee94 (svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly. 2008-04-17 11:25:12 +00:00
rubidium
2752568d61 (svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport. 2008-04-17 09:42:44 +00:00
peter1138
9c3725827a (svn r12747) -Codechange: Add varaction retrieval of station animation frame 2008-04-17 06:53:52 +00:00
peter1138
757d61b22f (svn r12746) -Codechange: Add map storage for station animation frame 2008-04-17 06:52:56 +00:00
smatz
966e476df8 (svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile() 2008-04-17 00:44:20 +00:00
rubidium
61074c4bf8 (svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this. 2008-04-16 21:06:21 +00:00
rubidium
34f4150b15 (svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw. 2008-04-16 20:39:35 +00:00
rubidium
1eac80f840 (svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw. 2008-04-16 20:01:04 +00:00
smatz
71ebefbbd7 (svn r12738) -Fix (r12736): some sprites could be left unsorted 2008-04-16 19:36:30 +00:00