Age | Commit message (Collapse) | Author |
|
They were all aimed at fixing the terraform-into-tunnel problem, but introduced new sideeffects while doing so
|
|
corner of a tile, and use it to simplify the code in a few places
|
|
appropriate enums
|
|
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
|
|
Although it was an accessor, nor his usage nor the values were clear.
|
|
terraformed.
Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one)
Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts.
That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff.
TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile).
|
|
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
|
|
- 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
|
|
|
|
structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
|
|
|
|
|
|
explicit types as parameters
|
|
missing files to project (thx bociusz)
|
|
|