From f38224a19d0e14fbfaf6548e78e33a726b868e72 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 16:54:41 +0100 Subject: New file again --- src/ft_draw_handweap.c | 14 ++++++++++++++ src/ft_raycasting.c | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 src/ft_draw_handweap.c (limited to 'src') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/22 20:02:47 by rbousset #+# #+# */ +/* Updated: 2020/02/22 20:02:48 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include +#include 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); } -- cgit v1.2.3