mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: Use TileOffsByAxis(...) in more places (#13026)
This commit is contained in:
+1
-1
@@ -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