Age | Commit message (Collapse) | Author |
|
is selected in the scenario editor.
-Side effects:
- Removed one global variable from variables.h
- Remove an ugly hack for the "many random towns" function
|
|
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing)
It's a bit overkill, so just handle this one case where it can happen
|
|
toguether.
|
|
|
|
|
|
appropriate enums
|
|
pool block clean up.
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
marco. town_cmd is now map access free
|
|
cleaning on town.flags12 too
|
|
|
|
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
|
|
|
|
houses
|
|
Although it was an accessor, nor his usage nor the values were clear.
|
|
building type
|
|
two drops ...
|
|
from a tile
|
|
|
|
is wrong
This leads to graphical glitches when drawing foundations.
This doesn't fix all problems, but at least some of them.
|
|
|
|
reservation in savegames and update where used
- Also add this capability to settings
|
|
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
|
|
|
|
magic numbers by enums and some related changes
|
|
|
|
|
|
it was just a complicated way of writing GetTileSlope(tile, NULL)
|
|
SL_MAX_VERSION
|
|
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
|
|
use a sprite enum instead of a magic number.
|
|
|
|
|
|
|
|
- Fix: wrong documentation of trees (Tron)
|
|
|
|
|
|
|
|
with CMD_ERROR
|
|
-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
|
|
|
|
|
|
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
|
|
comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
|
|
|
|
|
|
int/uint/int16/byte/-1 with proper types and constants
|
|
|
|
proper types or just removing them
|