mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 02:12:37 +01:00
Codechange: Use TileOffsByAxis(...) in more places (#13026)
This commit is contained in:
@@ -264,7 +264,7 @@ void Station::MarkTilesDirty(bool cargo_change) const
|
||||
{
|
||||
assert(this->TileBelongsToRailStation(tile));
|
||||
|
||||
TileIndexDiff delta = (GetRailStationAxis(tile) == AXIS_X ? TileDiffXY(1, 0) : TileDiffXY(0, 1));
|
||||
TileIndexDiff delta = TileOffsByAxis(GetRailStationAxis(tile));
|
||||
|
||||
TileIndex t = tile;
|
||||
uint len = 0;
|
||||
|
||||
Reference in New Issue
Block a user