summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index fb7994a..6967a3a 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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);