diff options
-rw-r--r-- | src/ft_find_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_find_item.c b/src/ft_find_item.c index bf0f67a..f9504d1 100644 --- a/src/ft_find_item.c +++ b/src/ft_find_item.c @@ -78,8 +78,8 @@ static void (uint64_t)pl->pos_x, cl); cl->sprites[10 + weap_id][that_id].s_pos_x = 0; cl->sprites[10 + weap_id][that_id].s_pos_y = 0; + pl->has_weapon[weap_id] = 1; } - pl->has_weapon[(weap_id == 3) ? (2) : (weap_id)] = 1; pl->handles_weapon = (weap_id == 0) ? (0) : (pl->handles_weapon); pl->handles_weapon = (weap_id == 1) ? (2) : (pl->handles_weapon); pl->handles_weapon = (weap_id == 2) ? (4) : (pl->handles_weapon); |