Author: cazfi
Date: Wed Jul 29 01:11:47 2015
New Revision: 29259

URL: http://svn.gna.org/viewcvs/freeciv?rev=29259&view=rev
Log:
Make reality check for existing player map cities on tile when broadcasting 
city info.

See bug #23716

Modified:
    branches/S2_5/server/citytools.c

Modified: branches/S2_5/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/citytools.c?rev=29259&r1=29258&r2=29259&view=diff
==============================================================================
--- branches/S2_5/server/citytools.c    (original)
+++ branches/S2_5/server/citytools.c    Wed Jul 29 01:11:47 2015
@@ -2055,6 +2055,7 @@
     } else {
       if (map_is_known_and_seen(pcity->tile, pplayer, V_MAIN)
           || player_has_trade_route_with_city(pplayer, pcity)) {
+        reality_check_city(pplayer, pcity->tile);
        update_dumb_city(pplayer, pcity);
        package_dumb_city(pplayer, pcity->tile, &sc_pack);
        lsend_packet_city_short_info(pplayer->connections, &sc_pack);
@@ -2432,7 +2433,7 @@
 /**************************************************************************
   Removes outdated (nonexistant) cities from a player
 **************************************************************************/
-void reality_check_city(struct player *pplayer,struct tile *ptile)
+void reality_check_city(struct player *pplayer, struct tile *ptile)
 {
   struct vision_site *pdcity = map_get_player_city(ptile, pplayer);
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to