Author: jtn Date: Tue May 12 09:25:25 2015 New Revision: 29064 URL: http://svn.gna.org/viewcvs/freeciv?rev=29064&view=rev Log: In city dialog tooltip, give negative Output_Bonus and Health_Pct effects appropriate descriptions.
See gna bug #23586. Modified: branches/S2_6/client/citydlg_common.c Modified: branches/S2_6/client/citydlg_common.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/citydlg_common.c?rev=29064&r1=29063&r2=29064&view=diff ============================================================================== --- branches/S2_6/client/citydlg_common.c (original) +++ branches/S2_6/client/citydlg_common.c Tue May 12 09:25:25 2015 @@ -511,7 +511,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; @@ -625,7 +626,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