mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
don't pause/resume gamestates on execution pause that aren't started
This commit is contained in:
parent
5b7d06014e
commit
6587d14530
1 changed files with 2 additions and 2 deletions
|
@ -530,7 +530,7 @@ SYMBOL_INTERNAL char* GetLibraryPath(struct Game* game, char* filename) {
|
||||||
SYMBOL_INTERNAL void PauseExecution(struct Game* game) {
|
SYMBOL_INTERNAL void PauseExecution(struct Game* game) {
|
||||||
struct Gamestate* tmp = game->_priv.gamestates;
|
struct Gamestate* tmp = game->_priv.gamestates;
|
||||||
while (tmp) {
|
while (tmp) {
|
||||||
if (!tmp->paused && tmp->loaded && tmp->api->Gamestate_Pause) {
|
if (!tmp->paused && tmp->loaded && tmp->started && tmp->api->Gamestate_Pause) {
|
||||||
tmp->api->Gamestate_Pause(game, tmp->data);
|
tmp->api->Gamestate_Pause(game, tmp->data);
|
||||||
}
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
|
@ -558,7 +558,7 @@ SYMBOL_INTERNAL void ResumeExecution(struct Game* game) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tmp->paused && tmp->loaded && tmp->api->Gamestate_Resume) {
|
if (!tmp->paused && tmp->loaded && tmp->started && tmp->api->Gamestate_Resume) {
|
||||||
tmp->api->Gamestate_Resume(game, tmp->data);
|
tmp->api->Gamestate_Resume(game, tmp->data);
|
||||||
}
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
|
|
Loading…
Reference in a new issue