summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-09 19:34:05 +0000
committerrubidium <rubidium@openttd.org>2009-01-09 19:34:05 +0000
commitb26cee21f67878182cb5d7170448f9d17c21a55f (patch)
treedaee530989536bf4d3d116ac674072a06f92260f /src/settings_gui.cpp
parent4fafb723aa7a69ebc53c4a9f734ad2dbe5c2a3e0 (diff)
downloadopenttd-b26cee21f67878182cb5d7170448f9d17c21a55f.tar.xz
(svn r14938) -Fix: some small inconsistencies w.r.t. "0 is disabled" setting handling
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index e7e5bb864..9064d0bdb 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -854,7 +854,7 @@ struct PatchesSelectionWindow : Window {
value = (int32)ReadValue(var, sd->save.conv);
/* Draw [<][>] boxes for settings of an integer-type */
- DrawArrowButtons(x, y, COLOUR_YELLOW, state, (editable && value != sdb->min), (editable && value != sdb->max));
+ DrawArrowButtons(x, y, COLOUR_YELLOW, state, editable && value != (sdb->flags & SGF_0ISDISABLED ? 0 : sdb->min), editable && value != sdb->max);
disabled = (value == 0) && (sdb->flags & SGF_0ISDISABLED);
if (disabled) {