(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
authorsmatz
Thu, 06 Dec 2007 20:48:15 +0000
changeset 8022 3b4f24a14ace
parent 8021 a650a0c52856
child 8023 0753dcefda8f
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
src/water_cmd.cpp
--- a/src/water_cmd.cpp	Thu Dec 06 20:36:46 2007 +0000
+++ b/src/water_cmd.cpp	Thu Dec 06 20:48:15 2007 +0000
@@ -66,6 +66,9 @@
 {
 	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 @@
 	} else {
 		MakeWater(t);
 	}
-	MarkTileDirtyByTile(t);
 }