aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_suffer_animation.c
diff options
context:
space:
mode:
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 7df91cd..c0bc307 100644
--- a/src/ft_suffer_animation.c
+++ b/src/ft_suffer_animation.c
@@ -41,7 +41,10 @@ void
mlx_destroy_image(cl->wlist.wlx, cl->img.img);
cl->plist.life -= 20;
if (cl->plist.life <= 0)
+ {
+ cl->plist.isdead = 1;
ft_warp_level(cl->mlist.filename, cl);
+ }
/* TODO death screen here */
}