From d99126692d9eefd345b4756017f4b7fb9cd75ba7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 20 Mar 2020 16:51:31 +0100 Subject: in progress --- src/ft_find_item.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_find_item.c') 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); -- cgit v1.2.3