diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:23:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:23:57 +0100 |
commit | 6714c479c5d9bcb025212de44ec92424458261d6 (patch) | |
tree | 73b7ebbaf1f40d36bb6d453826accd90188a5b10 /src/ft_suffer_animation.c | |
parent | sounds (diff) | |
download | 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.gz 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.bz2 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.xz 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.zst 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.zip |
Huge bug on death
Diffstat (limited to 'src/ft_suffer_animation.c')
-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 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 */ } |