summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-03 18:40:41 +0000
committerdarkvater <darkvater@openttd.org>2005-01-03 18:40:41 +0000
commitdc3a47853340c9188950e4b6879a209e8f70e287 (patch)
tree6a0aa2e165e43a956a954eef59550dddb4c558c1 /ttd.c
parent83342a0bcbc236ce6fba85fa7491d6e5ce4c4ea8 (diff)
downloadopenttd-dc3a47853340c9188950e4b6879a209e8f70e287.tar.xz
(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttd.c b/ttd.c
index cf5a021c8..242b9c729 100644
--- a/ttd.c
+++ b/ttd.c
@@ -1238,7 +1238,7 @@ bool AfterLoadGame(uint version)
uint h = MapSizeY();
BEGIN_TILE_LOOP(tile_cur, w, h, tile)
- if (IS_TILETYPE(tile_cur, MP_WATER) && _map_owner[tile_cur] != OWNER_WATER)
+ if (IS_TILETYPE(tile_cur, MP_WATER) && _map_owner[tile_cur] >= MAX_PLAYERS)
_map_owner[tile_cur] = OWNER_WATER;
if (!IS_TILETYPE(tile_cur, MP_WATER) && _map_owner[tile_cur] == OWNER_WATER)
_map_owner[tile_cur] = OWNER_NONE;