Author: sveinung
Date: Thu Sep 22 18:28:45 2016
New Revision: 33846

URL: http://svn.gna.org/viewcvs/freeciv?rev=33846&view=rev
Log:
Give reason when pop_cost blocks unit building.

See patch #7707

Modified:
    branches/S2_6/server/cityturn.c

Modified: branches/S2_6/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/cityturn.c?rev=33846&r1=33845&r2=33846&view=diff
==============================================================================
--- branches/S2_6/server/cityturn.c     (original)
+++ branches/S2_6/server/cityturn.c     Thu Sep 22 18:28:45 2016
@@ -2297,8 +2297,11 @@
 
     if (city_size_get(pcity) <= pop_cost) {
       notify_player(pplayer, city_tile(pcity), E_CITY_CANTBUILD, ftc_server,
-                    _("%s can't build %s yet."),
-                    city_link(pcity), utype_name_translation(utype));
+                    /* TRANS: city ... utype ... size ... pop_cost */
+                    _("%s can't build %s yet. "
+                      "(city size: %d, unit population cost: %d)"),
+                    city_link(pcity), utype_name_translation(utype),
+                    city_size_get(pcity), pop_cost);
       script_server_signal_emit("unit_cant_be_built", 3,
                                 API_TYPE_UNIT_TYPE, utype,
                                 API_TYPE_CITY, pcity,


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

Reply via email to