diff options
author | smatz <smatz@openttd.org> | 2007-12-06 20:48:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-06 20:48:15 +0000 |
commit | 720854ed16a81595c42f0c5fec3b0c8a14801265 (patch) | |
tree | 83b47f023b13d55c497e2bd75f8d03390c3cc373 /src | |
parent | 3d38b2c8ba74410390ef12d38bd8013dcc00f4fa (diff) | |
download | openttd-720854ed16a81595c42f0c5fec3b0c8a14801265.tar.xz |
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
Diffstat (limited to 'src')
-rw-r--r-- | src/water_cmd.cpp | 4 |
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); } |