diff options
author | quou <quou@disroot.org> | 2024-10-01 20:56:18 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-01 20:56:18 +1000 |
commit | 7fd847dcd9f951a91747405be1f9bbba91d6cedd (patch) | |
tree | fdde118b8d85ab407ddcd14c66161e035b1e413d /player.c | |
parent | 61d70551166de46cfda7ee5d6212817859153335 (diff) |
freeze frames when the player takes damage
Diffstat (limited to 'player.c')
-rw-r--r-- | player.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } } } |