aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_bad_boy_action.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-19 18:46:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-19 18:46:10 +0200
commit5f6b5490f80be9e792ccaeb18548cca54a62826f (patch)
tree029898cbaa860a060cb01b8db62c5b4414af8812 /src/ft_select_bad_boy_action.c
parentMinilibx update (diff)
download42-cub3d-5f6b5490f80be9e792ccaeb18548cca54a62826f.tar.gz
42-cub3d-5f6b5490f80be9e792ccaeb18548cca54a62826f.tar.bz2
42-cub3d-5f6b5490f80be9e792ccaeb18548cca54a62826f.tar.xz
42-cub3d-5f6b5490f80be9e792ccaeb18548cca54a62826f.tar.zst
42-cub3d-5f6b5490f80be9e792ccaeb18548cca54a62826f.zip
Fixed enemy hitbox
Diffstat (limited to 'src/ft_select_bad_boy_action.c')
-rw-r--r--src/ft_select_bad_boy_action.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_select_bad_boy_action.c b/src/ft_select_bad_boy_action.c
index 2be17f3..b824306 100644
--- a/src/ft_select_bad_boy_action.c
+++ b/src/ft_select_bad_boy_action.c
@@ -87,6 +87,7 @@ static void
can_shoot == 1))
{
r = ft_set_r_ii();
+ r = ((r == 1) && (d < 2.0)) ? (2) : (r);
ft_bb_act(r, i, cl);
}
else if (cl->bad_boy[i].sleep == 0 && cl->bad_boy[i].life > 0)