aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_find_item.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 18:13:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 18:13:42 +0100
commitbb495370849b7105a8da2384759c9a206557fcec (patch)
tree8a3cb79a265b084829024c9c84ed2eefe9741220 /src/ft_find_item.c
parentOk resize (diff)
download42-cub3d-bb495370849b7105a8da2384759c9a206557fcec.tar.gz
42-cub3d-bb495370849b7105a8da2384759c9a206557fcec.tar.bz2
42-cub3d-bb495370849b7105a8da2384759c9a206557fcec.tar.xz
42-cub3d-bb495370849b7105a8da2384759c9a206557fcec.tar.zst
42-cub3d-bb495370849b7105a8da2384759c9a206557fcec.zip
That's pretty cool I'm not gonna lie
Diffstat (limited to 'src/ft_find_item.c')
-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 1c3e9a0..7332e19 100644
--- a/src/ft_find_item.c
+++ b/src/ft_find_item.c
@@ -41,7 +41,7 @@ static void
cl->weaps[weap_id][0].s_pos_x = 0;
cl->weaps[weap_id][0].s_pos_y = 0;
pl->has_weapon[weap_id] = 1;
- pl->handles_weapon = weap_id;
+ pl->handles_weapon = (weap_id == 1) ? (2) : (weap_id);
/* TODO: ft_sfx_weapon(3) */
}
}