aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_suffer_animation.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:57:52 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:57:52 +0100
commit27d6105d866f890e5691147267eeaea6a6753883 (patch)
tree550c4f08dbf918b294ce722cb49ee47277869cca /src/ft_suffer_animation.c
parentmap update (diff)
download42-cub3d-27d6105d866f890e5691147267eeaea6a6753883.tar.gz
42-cub3d-27d6105d866f890e5691147267eeaea6a6753883.tar.bz2
42-cub3d-27d6105d866f890e5691147267eeaea6a6753883.tar.xz
42-cub3d-27d6105d866f890e5691147267eeaea6a6753883.tar.zst
42-cub3d-27d6105d866f890e5691147267eeaea6a6753883.zip
INTENSE mapping
Diffstat (limited to 'src/ft_suffer_animation.c')
-rw-r--r--src/ft_suffer_animation.c4
1 files changed, 2 insertions, 2 deletions
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);