summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-06 20:48:15 +0000
committersmatz <smatz@openttd.org>2007-12-06 20:48:15 +0000
commit720854ed16a81595c42f0c5fec3b0c8a14801265 (patch)
tree83b47f023b13d55c497e2bd75f8d03390c3cc373
parent3d38b2c8ba74410390ef12d38bd8013dcc00f4fa (diff)
downloadopenttd-720854ed16a81595c42f0c5fec3b0c8a14801265.tar.xz
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
-rw-r--r--src/water_cmd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 76b4ee4d2..7b388ae3f 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -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);
}