Age | Commit message (Collapse) | Author |
|
declaration)
|
|
|
|
Although it was an accessor, nor his usage nor the values were clear.
|
|
|
|
code and proofreading, thanks to peter1138 for another lot of code and ideas.
|
|
|
|
from a tile
|
|
|
|
(/ and \) pieces exist, explicitly update signals in both directions.
|
|
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).
|
|
as for any other sloped tile
|
|
|
|
|
|
|
|
nothing
|
|
|
|
get information about rail tiles
|
|
|
|
|
|
|
|
|
|
|
|
also add SetSignalType() and use the functions
|
|
(electric/semaphore)
|
|
shiny new functions and mark some strange constructs with XXX
|
|
bridge after removing it. For crossings we can always use .m2 because it is already 0 when not owned by a town.
|
|
any); it is in m2 so properly set it back when the crossing's removed.
|
|
UpdateSignalsOnSegment() instead of SetSignalsOnBothDir()
|
|
road) under bridges
|
|
|
|
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
|
|
Direction to DiagDirection as that's what it really operates on
|
|
DiagDirection and friends
|
|
|
|
and friends
|
|
|
|
a level crossing by some less magic numbers. Quite similar to r3699, though this time for placing the rails
|
|
code by using them
|
|
which direction a pieces of rail goes
|
|
tile/depot/waypoint. This is just a tiny step, the rail code needs way more love and caring
|
|
level crossing or a road depot
|
|
|
|
road pieces
|
|
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
|
|
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
|
|
|
|
|
|
TileIndex points to a tile on the map
|
|
in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
|
|
|