summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-11-17(svn r3215) - Fix: warning on VS.NET 2003 complaining about constness ↵Darkvater
reintroduced by revision 3192
2005-11-17(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep ↵bjarni
before starting to overwrite old ones max_autosave_num in the config files sets the number of autosaves to keep (default 16) MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given this behaviour can still be overwritten by keep_all_autosave (openttd.config setting) Note: this is a requested behaviour for PDA ports, since they got limited storage space
2005-11-17(svn r3213) - Codechange: Clean up handling of road stops, avoiding ↵peter1138
unnecessary use of pointers and using the *BIT() macros.
2005-11-16(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. ↵peter1138
This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct. - Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.
2005-11-16(svn r3211) Fix typo in r3181tron
2005-11-16(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of ↵truelight
magicnumbers) -Codechange: IsRailWaypoint should take 'tile', not 'm5'
2005-11-16(svn r3209) In TileLoop_Track(), use names based on function rather than ↵peter1138
their place in the map array.
2005-11-16(svn r3208) Don't explicitly pass the engine type to look for to ↵tron
GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter
2005-11-16(svn r3207) Typo in last revisiontron
2005-11-16(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUGtron
2005-11-16(svn r3205) Some more uses for GB/SBtron
2005-11-16(svn r3204) Make handling of clicking on vehicles a bit less ugly by ↵tron
avoiding function declarations in .c files and unnecessary indirection
2005-11-16(svn r3203) Directly use the currency symbols for pounds and yen in the ↵tron
language files like it's already done for dollar and euro
2005-11-16(svn r3202) If cascade -> switchtron
2005-11-16(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't ↵tron
disable this option at some arbitrary value early
2005-11-16(svn r3200) Remove the unused function GfxScalePalette() and the unused ↵tron
struct WorldSprite
2005-11-16(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4tron
2005-11-16(svn r3198) Rewrite the company league drawing routine for better readabilitytron
2005-11-16(svn r3197) Use a better bias so you can directly see the date range a ↵tron
disaster can happen in
2005-11-16(svn r3196) Use structs instead of magic offsets into arraystron
2005-11-16(svn r3195) Use bitfields instead of explicit shifting/maskingtron
2005-11-16(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkilltron
2005-11-16(svn r3193) Staticise the vehicle position hashtron
2005-11-16(svn r3192) Split the surname list into two lists (non-toyland/toyland) and ↵tron
use lengthof() to get the number of names instead of using magic numbers
2005-11-16(svn r3191) Move declaration and definition of _dbg_screen_rect to a place ↵tron
where it somewhat makes sense and wrap them in #ifdef _DEBUG
2005-11-15(svn r3190) Turn some loops into canonical for loop formtron
2005-11-15(svn r3189) There's a dedicated function to check if it's a hangar tile, so ↵tron
use it
2005-11-15(svn r3188) Use CmdFailed() to check, if a command failed, don't compare ↵tron
with CMD_ERROR
2005-11-15(svn r3187) Simplify overly complicated ifs, especially if (foo) return ↵tron
false; else return true; is confusing
2005-11-15(svn r3186) Unnecessary casts and truncationtron
2005-11-15(svn r3185) consttron
2005-11-15(svn r3184) GB/SBtron
2005-11-15(svn r3183) Remove an unused declaration and properly declare ↵tron
CheckExternalFiles() in a header
2005-11-14(svn r3182) Fix braino in r3181tron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3180) Replace some magic numbers by symbolic namestron
2005-11-14(svn r3179) - RandomRange() and RandomTile() instead of home brewed versionstron
- CHANCE*() instead of mumbling strange numbers
2005-11-14(svn r3178) - Codechange: move static _dropdown_* vars into the window ↵peter1138
custom data, giving var1 and var2 more meaningful names.
2005-11-14(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-11-13(svn r3176) Use proper types, not some variants of inttron
2005-11-13(svn r3175) - Updated OS/2 project file to include station_newgrf.corudge
2005-11-13(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing ↵Darkvater
sourcefile(s) from project)
2005-11-13(svn r3173) Use the trinary operator and switch to improve readabilitytron
Also align short cases nicely
2005-11-13(svn r3172) static, consttron
2005-11-12(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden ↵peter1138
variables, as a window already contains this information.
2005-11-12(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, ↵peter1138
and added some more values.
2005-11-12(svn r3169) Little bit of coding style fixing, and change from value to ↵peter1138
lengthof()
2005-11-12(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/peter1138
2005-11-12(svn r3167) - NewGRF: Start moving custom station code to separate files.peter1138
Rewrite handling of station classes. Allow for more than 8 station tile layouts. Start of code to unload custom stations.
2005-11-11(svn r3166) Constify read-only accesses of custom stationspeter1138