# HG changeset patch # User tron # Date 1123359872 0 # Node ID 3587386fb757f6dd58689f1b6a10b0468a03a20c # Parent 3fab21477a6f4df2e95246c2ff025447ae645d25 (svn r2821) Remove a write-only variable diff -r 3fab21477a6f -r 3587386fb757 openttd.c --- a/openttd.c Sat Aug 06 19:12:44 2005 +0000 +++ b/openttd.c Sat Aug 06 20:24:32 2005 +0000 @@ -683,8 +683,6 @@ void SwitchMode(int new_mode) { - _in_state_game_loop = true; - #ifdef ENABLE_NETWORK // If we are saving something, the network stays in his current state if (new_mode != SM_SAVE) { @@ -795,8 +793,6 @@ if (_switch_mode_errorstr != INVALID_STRING_ID) ShowErrorMessage(INVALID_STRING_ID,_switch_mode_errorstr,0,0); - - _in_state_game_loop = false; } @@ -809,7 +805,6 @@ // dont execute the state loop during pause if (_pause) return; - _in_state_game_loop = true; // _frame_counter is increased somewhere else when in network-mode // Sidenote: _frame_counter is ONLY used for _savedump in non-MP-games // Should that not be deleted? If so, the next 2 lines can also be deleted @@ -850,8 +845,6 @@ NewsLoop(); _current_player = p; } - - _in_state_game_loop = false; } static void DoAutosave(void) diff -r 3fab21477a6f -r 3587386fb757 variables.h --- a/variables.h Sat Aug 06 19:12:44 2005 +0000 +++ b/variables.h Sat Aug 06 20:24:32 2005 +0000 @@ -250,7 +250,6 @@ VARDEF byte _cur_year; VARDEF byte _cur_month; -VARDEF bool _in_state_game_loop; VARDEF uint32 _frame_counter; VARDEF bool _is_ai_player; // current player is an AI player? - Can be removed if new AI is done