diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 16:51:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 16:51:31 +0100 |
commit | d99126692d9eefd345b4756017f4b7fb9cd75ba7 (patch) | |
tree | 61f72fda5b99804dea1ef0ca0f7ddc6e4ec6200b /src/ft_find_item.c | |
parent | Added number images (diff) | |
download | 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.gz 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.bz2 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.xz 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.tar.zst 42-cub3d-d99126692d9eefd345b4756017f4b7fb9cd75ba7.zip |
in progress
Diffstat (limited to 'src/ft_find_item.c')
-rw-r--r-- | src/ft_find_item.c | 4 |
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); |