(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
authordarkvater
Mon, 03 Jan 2005 18:40:41 +0000
changeset 861 474d15904d40
parent 860 d756b3e0e171
child 862 d7e52ef99f42
(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
ttd.c
--- a/ttd.c	Mon Jan 03 17:55:25 2005 +0000
+++ b/ttd.c	Mon Jan 03 18:40:41 2005 +0000
@@ -1238,7 +1238,7 @@
 		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;