Age | Commit message (Collapse) | Author |
|
custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
|
|
that uses it and convert the bit-hacking into a struct
|
|
coordinates where it suffices.
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
GetRailTileType. Thanks to glx for noticing
|
|
|
|
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
|