(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 9b7b34fc2c
commit 57fc61009e

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