aboutsummaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 20:56:18 +1000
committerquou <quou@disroot.org>2024-10-01 20:56:18 +1000
commit7fd847dcd9f951a91747405be1f9bbba91d6cedd (patch)
treefdde118b8d85ab407ddcd14c66161e035b1e413d /player.c
parent61d70551166de46cfda7ee5d6212817859153335 (diff)
freeze frames when the player takes damage
Diffstat (limited to 'player.c')
-rw-r--r--player.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player.c b/player.c
index e94f18c..4d23a05 100644
--- a/player.c
+++ b/player.c
@@ -171,6 +171,8 @@ void update_player_hurt(Player* p, World* w) {
p->vx -= dz->vx;
p->vy -= dz->vy;
p->inv = enemy_inv_frames;
+ w->freeze = player_hurt_freeze;
+ return;
}
}
}