From a6dbe3b5710f719b3f02ba0044a72c64ee4155ac Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 13:54:11 +0200 Subject: Bug fix --- src/ft_shoot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ft_shoot.c') 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 -- cgit v1.2.3