(svn r22638) -Fix: Keep the previous owner of the upper and lower lock parts if they are built on existing water.

This commit is contained in:
michi_cc
2011-07-07 14:16:16 +00:00
parent d1be388bc9
commit 662a0a9cd3
2 changed files with 6 additions and 4 deletions

View File

@@ -279,8 +279,8 @@ static CommandCost RemoveLock(TileIndex tile, DoCommandFlag flags)
if (flags & DC_EXEC) {
DoClearSquare(tile);
MakeWaterKeepingClass(tile + delta, GetTileOwner(tile));
MakeWaterKeepingClass(tile - delta, GetTileOwner(tile));
MakeWaterKeepingClass(tile + delta, GetTileOwner(tile + delta));
MakeWaterKeepingClass(tile - delta, GetTileOwner(tile - delta));
MarkCanalsAndRiversAroundDirty(tile - delta);
MarkCanalsAndRiversAroundDirty(tile + delta);
}