aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_shoot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r--src/ft_shoot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c
index 09061b8..7f23bfd 100644
--- a/src/ft_shoot.c
+++ b/src/ft_shoot.c
@@ -49,9 +49,9 @@ 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.5)
- return (1);
- return (0);
+ + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.7)
+ return (0);
+ return (1);
}
static void