Author: sveinung
Date: Fri Oct 28 15:15:02 2016
New Revision: 34274

URL: http://svn.gna.org/viewcvs/freeciv?rev=34274&view=rev
Log:
order execution: prepare for > 1 found city.

Get a city name if the action results in city founding rather than if its
action id matches found city.

See patch #7882

Modified:
    trunk/server/unittools.c

Modified: trunk/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=34274&r1=34273&r2=34274&view=diff
==============================================================================
--- trunk/server/unittools.c    (original)
+++ trunk/server/unittools.c    Fri Oct 28 15:15:02 2016
@@ -4345,7 +4345,7 @@
         return TRUE;
       }
 
-      if (order.action == ACTION_FOUND_CITY) {
+      if (action_id_has_result(order.action, ACTION_FOUND_CITY)) {
         /* This action needs a name. */
         name = city_name_suggestion(pplayer, unit_tile(punit));
       } else {


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

Reply via email to