From a72d993e65df5e3ad811a25227c2fce04925f461 Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 3 Jan 2005 18:40:41 +0000 Subject: (svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER --- ttd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2