From 3bc9c114df783f37bd14339e3f29f80de97ad240 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 4 Jul 2023 23:19:02 +0100 Subject: Set the direction as it must be 0 --- src/effect.c | 1 + src/game.c | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/effect.c b/src/effect.c index 030f223..e308054 100644 --- a/src/effect.c +++ b/src/effect.c @@ -24,6 +24,7 @@ static const Rect frames[2 * 4] = void effect_out_init(Entity *e) { e->frames = (const Rect *)frames; + e->dir = DIR_RIGHT; e->frame = 1; e->delay = 0; e->update = effect_out_update; 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(); -- cgit v1.2.3