From 27d6105d866f890e5691147267eeaea6a6753883 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Mar 2020 22:57:52 +0100 Subject: INTENSE mapping --- src/ft_suffer_animation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_suffer_animation.c') diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c index a0a21a5..7229769 100644 --- a/src/ft_suffer_animation.c +++ b/src/ft_suffer_animation.c @@ -36,7 +36,7 @@ void mlx_put_image_to_window(cl->wlist.wlx, cl->wlist.winptr, cl->img.img, 0, 0); mlx_destroy_image(cl->wlist.wlx, cl->img.img); - cl->plist.life -= 20; + cl->plist.life -= FT_TRAP_DAMAGE_AMOUNT; if (cl->plist.life <= 0) { ft_sfx_death(cl); @@ -71,7 +71,7 @@ void (x * 4 + (y * cl->img.sizeline))) = ft_rgb_to_hex(rgb); } } - cl->plist.life -= 20; + cl->plist.life -= FT_TRAP_DAMAGE_AMOUNT; if (cl->plist.life <= 0) { ft_sfx_death(cl); -- cgit v1.2.3