diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_handweap.c | 14 | ||||
-rw-r--r-- | src/ft_raycasting.c | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ft_draw_handweap.c b/src/ft_draw_handweap.c new file mode 100644 index 0000000..f433cb1 --- /dev/null +++ b/src/ft_draw_handweap.c @@ -0,0 +1,14 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_draw_handweap.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/22 20:02:47 by rbousset #+# #+# */ +/* Updated: 2020/02/22 20:02:48 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <cub3d.h> +#include <stdint.h> 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); } |