diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 14:29:18 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-31 14:29:18 +0200 |
commit | 137397e014be24d48ccc60e36af21ffc25229b77 (patch) | |
tree | 4cc7e8a39c7b92756efceea8ea155d5de29317f3 /src/ft_time.c | |
parent | Nigga ain't gonna stop shootin me (diff) | |
download | 42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.gz 42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.bz2 42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.xz 42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.tar.zst 42-cub3d-137397e014be24d48ccc60e36af21ffc25229b77.zip |
Fixed that gangsta
Diffstat (limited to '')
-rw-r--r-- | src/ft_time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_time.c b/src/ft_time.c index ea0d221..a2ab4a0 100644 --- a/src/ft_time.c +++ b/src/ft_time.c @@ -45,7 +45,7 @@ void curr = clock(); dt[i] += curr - before; - if (cl->bad_boy[i].sleep == 1 && dt[i] > 0 && ft_clock_to_ms(dt[i]) > 1500) + if (cl->bad_boy[i].sleep == 1 && dt[i] > 0 && ft_clock_to_ms(dt[i]) > 700.0) { cl->bad_boy[i].sleep = 0; dt[i] = 0; @@ -65,5 +65,4 @@ void ft_bad_boys_time(before, i, cl); i++; } - ft_get_fps_count(before, cl); } |