diff options
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -18,11 +18,21 @@ game_update(Game *this) if (this->queue_next_scene) { if (--this->queue_next_scene == 0) { this->queue_restart_scene = 0; + this->queue_previous_scene = 0; map_next(); game_restart_scene(this); return; } } + if (this->queue_previous_scene) { + if (--this->queue_next_scene == 0) { + this->queue_restart_scene = 0; + this->queue_next_scene = 0; + map_previous(); + game_restart_scene(this); + return; + } + } if (this->queue_restart_scene) { if (--this->queue_restart_scene == 0) game_restart_scene(this); |