diff options
author | michi_cc <michi_cc@openttd.org> | 2011-07-07 14:16:16 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-07-07 14:16:16 +0000 |
commit | 662a0a9cd31111f9507e6d0706c3d5e9b7a425cc (patch) | |
tree | 844aa17136cf00df449de2dccfd9b6978df163fe /src/water_cmd.cpp | |
parent | d1be388bc91fcffe5dc5687b2ae57789c5d576a7 (diff) | |
download | openttd-662a0a9cd31111f9507e6d0706c3d5e9b7a425cc.tar.xz |
(svn r22638) -Fix: Keep the previous owner of the upper and lower lock parts if they are built on existing water.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 3ce93333b..b37636ccb 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -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); } |