summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-22 17:03:08 +0000
committerrubidium <rubidium@openttd.org>2007-10-22 17:03:08 +0000
commit00161bf9aada47acc5eddc083c948bd8078c832f (patch)
tree00f397536f73bf96782d059a6eeee100bafe6e4a /src
parent75a9fbc72a8c67d35b0b218787269cd935f99ea5 (diff)
downloadopenttd-00161bf9aada47acc5eddc083c948bd8078c832f.tar.xz
(svn r11338) -Fix [FS#1359]: water tiles not at sealevel (i.e. canals) should not be owned by water as that signals normal water.
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 64322adf7..d2285a318 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);
}
}