diff options
author | tron <tron@openttd.org> | 2005-08-06 20:24:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-06 20:24:32 +0000 |
commit | 5d5a7c48ee29a4ccba2466db59f3a6d513a8c0eb (patch) | |
tree | de666a4b76c2cb356d9adbb895b83b4279cc9a1e | |
parent | b0f307365a85ff71b6086d8fc8708d95104579cf (diff) | |
download | openttd-5d5a7c48ee29a4ccba2466db59f3a6d513a8c0eb.tar.xz |
(svn r2821) Remove a write-only variable
-rw-r--r-- | openttd.c | 7 | ||||
-rw-r--r-- | variables.h | 1 |
2 files changed, 0 insertions, 8 deletions
@@ -683,8 +683,6 @@ bool SafeSaveOrLoad(const char *filename, int mode, int newgm) 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 @@ void SwitchMode(int new_mode) 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 @@ void StateGameLoop(void) // 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 @@ void StateGameLoop(void) NewsLoop(); _current_player = p; } - - _in_state_game_loop = false; } static void DoAutosave(void) diff --git a/variables.h b/variables.h index 54be0e451..fc797b77b 100644 --- a/variables.h +++ b/variables.h @@ -250,7 +250,6 @@ VARDEF int _timer_counter; 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 |