mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: Use TileOffsByAxis(...) in more places (#13026)
This commit is contained in:
@@ -1129,7 +1129,7 @@ std::tuple<CommandCost, Money> CmdRemoveLongRoad(DoCommandFlag flags, TileIndex
|
||||
|
||||
if (tile == end_tile) break;
|
||||
|
||||
tile += (axis == AXIS_Y) ? TileDiffXY(0, 1) : TileDiffXY(1, 0);
|
||||
tile += TileOffsByAxis(axis);
|
||||
}
|
||||
|
||||
return { had_success ? cost : last_error, 0 };
|
||||
|
||||
Reference in New Issue
Block a user