(svn r24210) -Feature: Split the renew-months setting text in two string values (one before life time and one after).

This commit is contained in:
alberth
2012-05-06 15:03:45 +00:00
parent 0c80091daa
commit f6ccaa01c0
4 changed files with 9 additions and 2 deletions

View File

@@ -1289,6 +1289,9 @@ void SettingEntry::DrawSetting(GameSettings *settings_ptr, const SettingDesc *sd
if ((sdb->flags & SGF_MULTISTRING) != 0) {
SetDParam(1, sdb->val_str - sdb->min + value);
} else if ((sdb->flags & SGF_DISPLAY_ABS) != 0) {
SetDParam(1, sdb->val_str + ((value >= 0) ? 1 : 0));
value = abs(value);
} else {
SetDParam(1, sdb->val_str + ((value == 0 && (sdb->flags & SGF_0ISDISABLED) != 0) ? 1 : 0));
}