1
0
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:
SamuXarick
2024-10-24 20:58:15 +01:00
committed by GitHub
parent c9819f8957
commit d5a13fb9f4
8 changed files with 9 additions and 9 deletions

View File

@@ -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 };