(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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user