aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);