aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 16:54:41 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 16:54:41 +0100
commitf38224a19d0e14fbfaf6548e78e33a726b868e72 (patch)
tree49b8623de6a094748261e178b60a2eb0ee46ae8d /src/ft_raycasting.c
parentPlayer can grab weapon (diff)
download42-cub3d-f38224a19d0e14fbfaf6548e78e33a726b868e72.tar.gz
42-cub3d-f38224a19d0e14fbfaf6548e78e33a726b868e72.tar.bz2
42-cub3d-f38224a19d0e14fbfaf6548e78e33a726b868e72.tar.xz
42-cub3d-f38224a19d0e14fbfaf6548e78e33a726b868e72.tar.zst
42-cub3d-f38224a19d0e14fbfaf6548e78e33a726b868e72.zip
New file again
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index aa33eb5..cbcda24 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -109,6 +109,8 @@ void
ft_calc_heal(cl);
ft_calc_trap(cl);
ft_calc_weaps(cl);
+ if (cl->plist.handles_weapon > -1)
+ ft_draw_handweap(cl);
ft_memdel((void*)&cl->rlist.wall_dist_tab);
ft_memdel((void*)&cl->rlist.wall_bz);
}