mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9945) -Fix: bridges were not properly marked dirty when adding/removing roadtypes.
This commit is contained in:
parent
ac4a26c705
commit
54d7cb8f7c
|
@ -171,7 +171,7 @@ int32 CmdRemoveRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||
if (IsBridge(tile)) {
|
||||
TileIndexDiff delta = TileOffsByDiagDir(GetBridgeRampDirection(tile));
|
||||
|
||||
for (TileIndex t = tile; tile != other_end; tile += delta) MarkTileDirtyByTile(t);
|
||||
for (TileIndex t = tile + delta; t != other_end; t += delta) MarkTileDirtyByTile(t);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -475,7 +475,7 @@ do_clear:;
|
|||
if (IsBridge(tile)) {
|
||||
TileIndexDiff delta = TileOffsByDiagDir(GetBridgeRampDirection(tile));
|
||||
|
||||
for (TileIndex t = tile + delta; tile != other_end; tile += delta) MarkTileDirtyByTile(t);
|
||||
for (TileIndex t = tile + delta; t != other_end; t += delta) MarkTileDirtyByTile(t);
|
||||
}
|
||||
} break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue