mirror of https://github.com/OpenTTD/OpenTTD
(svn r9647) -Fix (r6631) [FS#733]: Select "Custom" in the difficulty settings gui when changing a setting. (Frostregen)
parent
229eb8cba5
commit
720842ba91
|
@ -500,7 +500,9 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
|
||||||
|
|
||||||
// save value in temporary variable
|
// save value in temporary variable
|
||||||
((int*)&_opt_mod_temp.diff)[btn] = val;
|
((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
|
SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom
|
||||||
|
LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
} break;
|
} break;
|
||||||
case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */
|
case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */
|
||||||
|
|
Loading…
Reference in New Issue