From 6714c479c5d9bcb025212de44ec92424458261d6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 13 Mar 2020 04:23:57 +0100 Subject: Huge bug on death --- src/ft_suffer_animation.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_suffer_animation.c') 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 */ } -- cgit v1.2.3