Author: sveinung
Date: Mon Mar 23 14:48:04 2015
New Revision: 28601

URL: http://svn.gna.org/viewcvs/freeciv?rev=28601&view=rev
Log:
Don't claim city founding is illegal when it is or may be legal.

handle_city_name_suggestion_req(): Insert missing return statement after
sending the city name when city founding is or may be possible. Without it the
code that explains why when founding a city is illegal will be reached.

See bug #23400

Modified:
    trunk/server/cityhand.c

Modified: trunk/server/cityhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityhand.c?rev=28601&r1=28600&r2=28601&view=diff
==============================================================================
--- trunk/server/cityhand.c     (original)
+++ trunk/server/cityhand.c     Mon Mar 23 14:48:04 2015
@@ -69,6 +69,9 @@
                 TILE_XY(unit_tile(punit)));
     dlsend_packet_city_name_suggestion_info(pplayer->connections, unit_id,
         city_name_suggestion(pplayer, unit_tile(punit)));
+
+    /* The rest of this function is error handling. */
+    return;
   }
 
   res = unit_add_or_build_city_test(punit);


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

Reply via email to