Author: jtn
Date: Tue May 12 09:28:42 2015
New Revision: 29070

URL: http://svn.gna.org/viewcvs/freeciv?rev=29070&view=rev
Log:
In city dialog tooltip, give negative Output_Bonus and Health_Pct
effects appropriate descriptions.

See gna bug #23586.

Modified:
    branches/S2_5/client/citydlg_common.c

Modified: branches/S2_5/client/citydlg_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/citydlg_common.c?rev=29070&r1=29069&r2=29070&view=diff
==============================================================================
--- branches/S2_5/client/citydlg_common.c       (original)
+++ branches/S2_5/client/citydlg_common.c       Tue May 12 09:28:42 2015
@@ -508,7 +508,8 @@
        bonus += peffect->value;
        new_total = bonus * base / 100;
        cat_snprintf(buf, bufsz,
-                    _("%+4d : Bonus from %s (%+d%%)\n"),
+                     (peffect->value > 0) ? _("%+4d : Bonus from %s (%+d%%)\n")
+                                          : _("%+4d : Loss from %s (%+d%%)\n"),
                     (new_total - total), buf2,
                     peffect->value);
        total = new_total;
@@ -622,7 +623,8 @@
     get_effect_req_text(peffect, buf2, sizeof(buf2));
 
     cat_snprintf(buf, bufsz,
-                 _("%+5.1f : Bonus from %s\n"),
+                 (peffect->value > 0) ? _("%+5.1f : Bonus from %s\n")
+                                      : _("%+5.1f : Risk from %s\n"),
                  -(0.1 * ill_base * peffect->value / 100), buf2);
   } effect_list_iterate_end;
   effect_list_destroy(plist);


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

Reply via email to