diff options
author | darkvater <darkvater@openttd.org> | 2005-01-31 11:36:16 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-31 11:36:16 +0000 |
commit | b6dbc9196ad119a079109aa07cf23bf3fcc08f11 (patch) | |
tree | 98c1a9a0ef7610d270f2b29e031ab429e441ef08 /settings_gui.c | |
parent | 870f28a76e4d608e8999d4c89683c9e9708887a2 (diff) | |
download | openttd-b6dbc9196ad119a079109aa07cf23bf3fcc08f11.tar.xz |
(svn r1753) - Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled.
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings_gui.c b/settings_gui.c index de224a2c2..c691f2da7 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -347,6 +347,10 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e) w->click_state = (1 << 3) << _opt_mod_temp.diff_level; w->disabled_state = (_game_mode != GM_NORMAL) ? 0 : (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6); + + if (_game_mode == GM_EDITOR) + SETBIT(w->disabled_state, 7); + if (_networking) { SETBIT(w->disabled_state, 7); // disable highscore chart in multiplayer if (!_network_server) |