Fix #9837, 46bd2f1c: Road build with wrong half-tile ends.

This commit is contained in:
Michael Lutz
2022-03-20 12:05:31 +01:00
parent 0d9fdeda8e
commit 8d54f76539
2 changed files with 4 additions and 3 deletions

View File

@@ -989,7 +989,8 @@ CommandCost CmdBuildLongRoad(DoCommandFlag flags, TileIndex start_tile, TileInde
/* Swap direction, also the half-tile drag vars. */
if (start_tile > end_tile || (start_tile == end_tile && start_half)) {
dir = ReverseDiagDir(dir);
std::swap(start_half, end_half);
start_half = !start_half;
end_half = !end_half;
if (drd == DRD_NORTHBOUND || drd == DRD_SOUTHBOUND) drd ^= DRD_BOTH;
}