(svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
a symbol called _pause (and therefor our variable conflicts with thatone. We shouldn't be using _ as global indicator.....)
This commit is contained in:
@@ -319,7 +319,7 @@ static void LoadIntroGame(void)
|
||||
WaitTillGeneratedWorld();
|
||||
}
|
||||
|
||||
_pause = 0;
|
||||
_pause_game = 0;
|
||||
SetLocalPlayer(PLAYER_FIRST);
|
||||
/* Make sure you can't scroll in the menu */
|
||||
_scrolling_viewport = 0;
|
||||
@@ -903,7 +903,7 @@ void SwitchMode(int new_mode)
|
||||
void StateGameLoop(void)
|
||||
{
|
||||
// dont execute the state loop during pause
|
||||
if (_pause) return;
|
||||
if (_pause_game) return;
|
||||
if (IsGeneratingWorld()) return;
|
||||
|
||||
if (_game_mode == GM_EDITOR) {
|
||||
@@ -1064,9 +1064,9 @@ void GameLoop(void)
|
||||
StateGameLoop();
|
||||
#endif /* ENABLE_NETWORK */
|
||||
|
||||
if (!_pause && _display_opt & DO_FULL_ANIMATION) DoPaletteAnimations();
|
||||
if (!_pause_game && _display_opt & DO_FULL_ANIMATION) DoPaletteAnimations();
|
||||
|
||||
if (!_pause || _cheats.build_in_pause.value) MoveAllTextEffects();
|
||||
if (!_pause_game || _cheats.build_in_pause.value) MoveAllTextEffects();
|
||||
|
||||
InputLoop();
|
||||
|
||||
|
Reference in New Issue
Block a user