mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 17:21:27 +01:00
call Gamestate_Pause/Resume also on freezing
This commit is contained in:
parent
fdd48433bc
commit
098231269c
1 changed files with 4 additions and 8 deletions
|
@ -159,10 +159,8 @@ SYMBOL_EXPORT void PauseGamestate(struct Game *game, const char* name) {
|
|||
return;
|
||||
}
|
||||
gs->paused = true;
|
||||
if (!gs->frozen) {
|
||||
game->_priv.current_gamestate = gs;
|
||||
(*gs->api->Gamestate_Pause)(game, gs->data);
|
||||
}
|
||||
game->_priv.current_gamestate = gs;
|
||||
(*gs->api->Gamestate_Pause)(game, gs->data);
|
||||
PrintConsole(game, "Gamestate \"%s\" paused.", name);
|
||||
} else {
|
||||
PrintConsole(game, "Tried to pause nonexisitent gamestate \"%s\"", name);
|
||||
|
@ -181,10 +179,8 @@ SYMBOL_EXPORT void ResumeGamestate(struct Game *game, const char* name) {
|
|||
return;
|
||||
}
|
||||
gs->paused = false;
|
||||
if (!gs->frozen) {
|
||||
game->_priv.current_gamestate = gs;
|
||||
(*gs->api->Gamestate_Resume)(game, gs->data);
|
||||
}
|
||||
game->_priv.current_gamestate = gs;
|
||||
(*gs->api->Gamestate_Resume)(game, gs->data);
|
||||
PrintConsole(game, "Gamestate \"%s\" resumed.", name);
|
||||
} else {
|
||||
PrintConsole(game, "Tried to resume nonexisitent gamestate \"%s\"", name);
|
||||
|
|
Loading…
Add table
Reference in a new issue