aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-04 15:56:43 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-04 15:56:43 +0200
commit0aefb9d60143a974ca927cd866e484ab45a114fc (patch)
tree3c0ad448b6b078303933235ed75768bfaeee04d1 /src
parentChanged Colt's pitch a bit (diff)
download42-cub3d-0aefb9d60143a974ca927cd866e484ab45a114fc.tar.gz
42-cub3d-0aefb9d60143a974ca927cd866e484ab45a114fc.tar.bz2
42-cub3d-0aefb9d60143a974ca927cd866e484ab45a114fc.tar.xz
42-cub3d-0aefb9d60143a974ca927cd866e484ab45a114fc.tar.zst
42-cub3d-0aefb9d60143a974ca927cd866e484ab45a114fc.zip
Skeleton corpses now only give ammo, not the gun
Diffstat (limited to 'src')
-rw-r--r--src/ft_find_item.c2
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);