aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_time.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_time.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_time.c')
-rw-r--r--src/ft_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_time.c b/src/ft_time.c
index 128d890..73d2379 100644
--- a/src/ft_time.c
+++ b/src/ft_time.c
@@ -49,7 +49,7 @@ void
curr = clock();
dt[i] += curr - before;
- if (cl->bad_boy[i].sleep == 1 && dt[i] > 0 && ft_clock_to_ms(dt[i]) > 700.0)
+ if (cl->bad_boy[i].sleep == 1 && dt[i] > 0 && ft_clock_to_ms(dt[i]) > 500.0)
{
cl->bad_boy[i].sleep = 0;
dt[i] = 0;