aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_find_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_find_item.c')
-rw-r--r--src/ft_find_item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_find_item.c b/src/ft_find_item.c
index b55e9d9..56e1351 100644
--- a/src/ft_find_item.c
+++ b/src/ft_find_item.c
@@ -54,10 +54,10 @@ void
if (ft_ischarset(FT_CHRST_ITEM, map_char))
{
- if (map_char == '+' && pl->life < 100)
+ if (map_char == '+' && pl->life < FT_STRT_LIFE)
{
pl->life += FT_HEAL_PACK_AMOUNT;
- pl->life = (pl->life > 100) ? (100) : (pl->life);
+ pl->life = (pl->life > FT_STRT_LIFE) ? (FT_STRT_LIFE) : (pl->life);
ml->map[(uint64_t)pl->pos_y][(uint64_t)pl->pos_x] = '0';
id = ft_fetch_heals_id((uint64_t)pl->pos_y,
(uint64_t)pl->pos_x, cl);