Author: jtn
Date: Tue May 12 09:22:54 2015
New Revision: 29052

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

See gna bug #23586.

Modified:
    trunk/client/citydlg_common.c

Modified: trunk/client/citydlg_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/citydlg_common.c?rev=29052&r1=29051&r2=29052&view=diff
==============================================================================
--- trunk/client/citydlg_common.c       (original)
+++ trunk/client/citydlg_common.c       Tue May 12 09:22:54 2015
@@ -507,7 +507,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;
@@ -621,7 +622,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