aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_shoot.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-01 14:44:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-01 14:44:10 +0200
commitd6043e18cbd776383ec7c3901b1e4c1bb1d66cd0 (patch)
treec99babe2ddd0f77c14b9cb102342c461170c02c1 /src/ft_shoot.c
parentPlayer screams all the time (diff)
download42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.gz
42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.bz2
42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.xz
42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.zst
42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.zip
Killing skeltons gives ammo, but still segv
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r--src/ft_shoot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c
index 7f12eb6..01a96fd 100644
--- a/src/ft_shoot.c
+++ b/src/ft_shoot.c
@@ -49,7 +49,7 @@ static int8_t
{
if (cl->plist.handles_weapon == 0 &&
sqrtf(powf(cl->plist.pos_x - cl->rlist.sqy, 2)
- + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.3)
+ + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.6)
return (0);
return (1);
}