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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_find_item.c b/src/ft_find_item.c
index 782a24a..d00b62d 100644
--- a/src/ft_find_item.c
+++ b/src/ft_find_item.c
@@ -33,6 +33,7 @@ void
ft_find_item(t_player *pl, t_map *ml, t_cub *cl)
{
uint16_t id;
+
if (ft_ischarset(FT_CHRST_ITEM,
ml->map[(uint64_t)pl->pos_y][(uint64_t)pl->pos_x]))
{
@@ -43,7 +44,7 @@ void
pl->life = (pl->life > 100) ? (100) : (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);
+ (uint64_t)pl->pos_x, cl);
cl->heals[id].s_pos_x = 0;
cl->heals[id].s_pos_y = 0;
/* TODO: ft_sfx_heal(3) */