(svn r11338) -Fix [FS#1359]: water tiles not at sealevel (i.e. canals) should not be owned by water as that signals normal water.
authorrubidium
Mon, 22 Oct 2007 17:03:08 +0000
changeset 7788 b4cda59c0e5c
parent 7787 7262efa8ad51
child 7789 ffac1a901f54
(svn r11338) -Fix [FS#1359]: water tiles not at sealevel (i.e. canals) should not be owned by water as that signals normal water.
src/openttd.cpp
--- a/src/openttd.cpp	Mon Oct 22 13:26:33 2007 +0000
+++ b/src/openttd.cpp	Mon Oct 22 17:03:08 2007 +0000
@@ -2052,7 +2052,7 @@
 	if (CheckSavegameVersion(46)) {
 		Station *st;
 		FOR_ALL_STATIONS(st) {
-			if (st->IsBuoy() && IsTileOwner(st->xy, OWNER_NONE)) SetTileOwner(st->xy, OWNER_WATER);
+			if (st->IsBuoy() && IsTileOwner(st->xy, OWNER_NONE) && TileHeight(st->xy) == 0) SetTileOwner(st->xy, OWNER_WATER);
 		}
 	}