diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:24:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:24:59 +0100 |
commit | 65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58 (patch) | |
tree | 43466646308d4a2df68a75381731b03e53ef6c7e /src | |
parent | Huge bug on death (diff) | |
download | 42-cub3d-65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58.tar.gz 42-cub3d-65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58.tar.bz2 42-cub3d-65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58.tar.xz 42-cub3d-65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58.tar.zst 42-cub3d-65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58.zip |
Still bug on death
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_suffer_animation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c index c0bc307..28a0d12 100644 --- a/src/ft_suffer_animation.c +++ b/src/ft_suffer_animation.c @@ -72,7 +72,10 @@ void } cl->plist.life -= 20; if (cl->plist.life <= 0) + { + cl->plist.isdead = 1; ft_warp_level(cl->mlist.filename, cl); + } /* TODO death screen here */ cl->doicast = 0; } |