Age | Commit message (Collapse) | Author |
|
- Report the correct z alongside the ramp when a foundation is present
- Always report the z under the bridge for a bridge middle part, except if the z hack is used
This should fix some weird behavior of the tile selector near bridges
|
|
coordinates where it suffices.
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
declaration)
|
|
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.
|
|
|
|
|
|
code and proofreading, thanks to peter1138 for another lot of code and ideas.
|
|
of the comma operator
|
|
get information about rail tiles
|
|
|
|
|
|
shiny new functions and mark some strange constructs with XXX
|
|
if there's a transport route at all under the bridge
|
|
make the only place which still extracted that info diretly use the wrapper
|
|
(the line above already says what's going on)
|
|
instead of again and again
|
|
with similar functionality
|
|
offset once instead of all over the place; also use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir(), because this is sufficient
|
|
under bridges works; also remove an unnecessary local variable
|
|
|
|
bridge after removing it. For crossings we can always use .m2 because it is already 0 when not owned by a town.
|
|
|
|
removal loop
|
|
comprehensible and add the needed accessors
|
|
Fix r3887
|
|
bridge ramp
|
|
|
|
part
|
|
Note: This slightly changes the behavior of GetAnyRoadBits() to only return a road piece for the start of the bridge ramp instead of a full ROAD_[XY]
|
|
|
|
road) under bridges
|
|
magic numbers and generic names
|
|
Existing bug: When restoring a road piece which belongs to a town the town index unconditionally gets set to 0
|
|
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
|
|
codes instead of using this global variable
|
|
overwritten just a few lines later without being used in between
|
|
generic byte and don't fill arbitrary data into inappropriate types
|
|
|
|
Direction to DiagDirection as that's what it really operates on
|
|
DiagDirection and friends
|
|
result and give it a less ambiguous name (IsTunnelInWay)
|
|
|
|
and friends
|
|
|
|
road pieces
|
|
|
|
building a tunnel
|