summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index a0529b05d..dbf80d7a7 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -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));
}