mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-21 04:29:42 +01:00
(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
This commit is contained in:
parent
3ee8697bbf
commit
a72d993e65
2
ttd.c
2
ttd.c
@ -1238,7 +1238,7 @@ bool AfterLoadGame(uint version)
|
|||||||
uint h = MapSizeY();
|
uint h = MapSizeY();
|
||||||
|
|
||||||
BEGIN_TILE_LOOP(tile_cur, w, h, tile)
|
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;
|
_map_owner[tile_cur] = OWNER_WATER;
|
||||||
if (!IS_TILETYPE(tile_cur, MP_WATER) && _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;
|
_map_owner[tile_cur] = OWNER_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user