(svn r1753) - Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled.
authordarkvater
Mon, 31 Jan 2005 11:36:16 +0000
changeset 1249 3f6390064c63
parent 1248 60d36b03da86
child 1250 49d00fa42b76
(svn r1753) - Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled.
settings_gui.c
--- a/settings_gui.c	Mon Jan 31 11:33:21 2005 +0000
+++ b/settings_gui.c	Mon Jan 31 11:36:16 2005 +0000
@@ -347,6 +347,10 @@
 
 		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)