<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40262 >
2008/6/8 Marko Lindqvist: > From year +340, sanity check fails: > Tile at Hafnarfjörður->68,22 marked as unavailable but seems to be available! Tile was revealed to city owner in initial map revelation of shared vision. Fix attached. For S2_1 only. In S2_2 and TRUNK cities always know all their tiles. - ML
diff -Nurd -X.diff_ignore freeciv/server/citytools.c freeciv/server/citytools.c --- freeciv/server/citytools.c 2008-06-11 18:29:18.000000000 +0300 +++ freeciv/server/citytools.c 2008-06-19 00:55:28.000000000 +0300 @@ -2165,7 +2165,7 @@ } /************************************************************************** -... + Check worker maps of all the cities of the player. **************************************************************************/ void check_city_workers(struct player *pplayer) { diff -Nurd -X.diff_ignore freeciv/server/maphand.c freeciv/server/maphand.c --- freeciv/server/maphand.c 2008-01-15 04:04:13.000000000 +0200 +++ freeciv/server/maphand.c 2008-06-19 01:03:13.000000000 +0300 @@ -1250,6 +1250,9 @@ } vision_layer_iterate_end; } whole_map_iterate_end; + /* Refresh cities in case new tiles were revealed from their area. */ + check_city_workers(pplayer2); + /* squares that are not seen, but which pfrom may have more recent knowledge of */ give_map_from_player_to_player(pplayer, pplayer2);
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev