aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:04:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:04:05 +0200
commit84ac504edbe27a56018b77fd93f289b90b1d8bdc (patch)
tree17e4484db8a227c17cd9fe469ae661714f3e36e7 /inc/cub3d.h
parentBad boys do not eat walls anymore (diff)
download42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.gz
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.bz2
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.xz
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.zst
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.zip
Fixed bad boys collision, reroll if hit a wall
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r--inc/cub3d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 5ae96c4..c0b324b 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -261,6 +261,8 @@ void ft_bb_fire(t_bad_boy *bl, t_sprite *sl, t_map *ml);
void ft_check_bad_boy_shoot(t_cub *cl);
void ft_damage_bad_boy(t_cub *cl);
int8_t ft_can_it_shoot(int8_t id, double d, t_cub *cl);
+int8_t ft_bb_collision(double old_y, double old_x,
+ t_sprite *sl, t_map *ml);
/*
** ====== DELETION ======