diff options
author | rubidium <rubidium@openttd.org> | 2009-01-09 19:34:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-09 19:34:05 +0000 |
commit | f902e3097d37480359c7d33e81ab84a7d34be481 (patch) | |
tree | daee530989536bf4d3d116ac674072a06f92260f /src/settings_gui.cpp | |
parent | b0b6285c26f9713e396a8500be570036093fad66 (diff) | |
download | openttd-f902e3097d37480359c7d33e81ab84a7d34be481.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.cpp | 2 |
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) { |