mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
This commit is contained in:
parent
9b7b34fc2c
commit
57fc61009e
@ -66,6 +66,9 @@ void MakeWaterOrCanalDependingOnSurroundings(TileIndex t, Owner o)
|
||||
{
|
||||
assert(GetTileSlope(t, NULL) == SLOPE_FLAT);
|
||||
|
||||
/* Mark tile dirty in all cases */
|
||||
MarkTileDirtyByTile(t);
|
||||
|
||||
/* Non-sealevel -> canal */
|
||||
if (TileHeight(t) != 0) {
|
||||
MakeCanal(t, o);
|
||||
@ -87,7 +90,6 @@ void MakeWaterOrCanalDependingOnSurroundings(TileIndex t, Owner o)
|
||||
} else {
|
||||
MakeWater(t);
|
||||
}
|
||||
MarkTileDirtyByTile(t);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user