Age | Commit message (Collapse) | Author |
|
reintroduced by revision 3192
|
|
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
|
|
unnecessary use of pointers and using the *BIT() macros.
|
|
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.
|
|
|
|
magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
|
|
their place in the map array.
|
|
GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter
|
|
|
|
|
|
|
|
avoiding function declarations in .c files and unnecessary indirection
|
|
language files like it's already done for dollar and euro
|
|
|
|
disable this option at some arbitrary value early
|
|
struct WorldSprite
|
|
|
|
|
|
disaster can happen in
|
|
|
|
|
|
|
|
|
|
use lengthof() to get the number of names instead of using magic numbers
|
|
where it somewhat makes sense and wrap them in #ifdef _DEBUG
|
|
|
|
use it
|
|
with CMD_ERROR
|
|
false; else return true; is confusing
|
|
|
|
|
|
|
|
CheckExternalFiles() in a header
|
|
|
|
-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
|
|
|
|
- CHANCE*() instead of mumbling strange numbers
|
|
custom data, giving var1 and var2 more meaningful names.
|
|
|
|
|
|
|
|
sourcefile(s) from project)
|
|
Also align short cases nicely
|
|
|
|
variables, as a window already contains this information.
|
|
and added some more values.
|
|
lengthof()
|
|
|
|
Rewrite handling of station classes.
Allow for more than 8 station tile layouts.
Start of code to unload custom stations.
|
|
|