summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-16 10:30:31 +0000
committermaedhros <maedhros@openttd.org>2007-04-16 10:30:31 +0000
commitc5354bdecca120323da69b3ebbebd51ce709cc8c (patch)
treee1b80f483e28a3a81d8b447add46396b433d5e30
parentfe368130dcf3d75c981dba6d4df178888ab18850 (diff)
downloadopenttd-c5354bdecca120323da69b3ebbebd51ce709cc8c.tar.xz
(svn r9647) -Fix (r6631) [FS#733]: Select "Custom" in the difficulty settings gui when changing a setting. (Frostregen)
-rw-r--r--src/settings_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 1917f06a9..3fcbcef70 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -500,7 +500,9 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
// save value in temporary variable
((int*)&_opt_mod_temp.diff)[btn] = val;
+ RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3);
SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom
+ LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);
SetWindowDirty(w);
} break;
case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */