aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_suffer_animation.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:24:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:24:59 +0100
commit65adb7aca9cc8d6c23ed3b6f5ec5eae814035d58 (patch)
tree43466646308d4a2df68a75381731b03e53ef6c7e /src/ft_suffer_animation.c
parentHuge bug on death (diff)
download42-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 '')
-rw-r--r--src/ft_suffer_animation.c3
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;
}