From f8293ec0c552284c3f66a72453d8b4d6e417e71a Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 22 Oct 2007 17:03:08 +0000 Subject: [PATCH] (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 64322adf74..d2285a3186 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2052,7 +2052,7 @@ bool AfterLoadGame() 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); } }