mirror of https://github.com/OpenTTD/OpenTTD
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
parent
3d38b2c8ba
commit
720854ed16
|
@ -66,6 +66,9 @@ void MakeWaterOrCanalDependingOnSurroundings(TileIndex t, Owner o)
|
||||||
{
|
{
|
||||||
assert(GetTileSlope(t, NULL) == SLOPE_FLAT);
|
assert(GetTileSlope(t, NULL) == SLOPE_FLAT);
|
||||||
|
|
||||||
|
/* Mark tile dirty in all cases */
|
||||||
|
MarkTileDirtyByTile(t);
|
||||||
|
|
||||||
/* Non-sealevel -> canal */
|
/* Non-sealevel -> canal */
|
||||||
if (TileHeight(t) != 0) {
|
if (TileHeight(t) != 0) {
|
||||||
MakeCanal(t, o);
|
MakeCanal(t, o);
|
||||||
|
@ -87,7 +90,6 @@ void MakeWaterOrCanalDependingOnSurroundings(TileIndex t, Owner o)
|
||||||
} else {
|
} else {
|
||||||
MakeWater(t);
|
MakeWater(t);
|
||||||
}
|
}
|
||||||
MarkTileDirtyByTile(t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue