summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-18 19:15:05 +0100
committerkdx <kikoodx@paranoici.org>2023-03-18 19:15:05 +0100
commit11b10c227cfccec717b8b7206f33a8bce24a54dc (patch)
tree750c1f9daf319934f2ca1729b63e0fecc08bbf1d /src/player.c
parentef3cf8e9df99856d4c322afd17fed5e3e15f383b (diff)
downloadhyperultra-11b10c227cfccec717b8b7206f33a8bce24a54dc.tar.gz
u dedge
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index c729085..70ccb20 100644
--- a/src/player.c
+++ b/src/player.c
@@ -49,6 +49,9 @@ player_update(Entity *this, Game *g)
if (this->vel[0] == 0.0 && this->vel[1] >= -0.0)
this->player.dirx *= -1;
+ if (this->bonk_ceiling)
+ g->queue_restart_scene = true;
+
if (entity_place_meeting(this, g, ET_EXIT) != NULL)
g->queue_next_scene = true;
}