1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock

This commit is contained in:
smatz
2007-12-06 20:48:15 +00:00
parent 3d38b2c8ba
commit 720854ed16

View File

@@ -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);
}