aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-04 23:19:02 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-04 23:19:02 +0100
commit3bc9c114df783f37bd14339e3f29f80de97ad240 (patch)
treeb4ff948dc47a69213347b18cff787cc3f6383024 /src/game.c
parent81efbd3a866fe3f99768b03c341b7b9d11dda9de (diff)
downloadgold-mine-run-3bc9c114df783f37bd14339e3f29f80de97ad240.tar.gz
gold-mine-run-3bc9c114df783f37bd14339e3f29f80de97ad240.zip
Set the direction as it must be 0
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index dc51a21..9d126d1 100644
--- a/src/game.c
+++ b/src/game.c
@@ -205,6 +205,13 @@ void run_game()
tmonster = NULL;
}
+ if (map_is_complete())
+ {
+ tmonster = NULL;
+ timer_stop();
+ entities_warp_out_all();
+ }
+
entities_draw();
player_draw();