(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
1 changed files with 3 additions and 1 deletions

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