aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 19:16:33 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 19:16:33 +0100
commit72544554bae9acee9f6e670e2f7c03c229dfc40b (patch)
tree2369f71446de5db0a0916244be9d97baea74e1e4
parentDecent tier (diff)
download42-cub3d-72544554bae9acee9f6e670e2f7c03c229dfc40b.tar.gz
42-cub3d-72544554bae9acee9f6e670e2f7c03c229dfc40b.tar.bz2
42-cub3d-72544554bae9acee9f6e670e2f7c03c229dfc40b.tar.xz
42-cub3d-72544554bae9acee9f6e670e2f7c03c229dfc40b.tar.zst
42-cub3d-72544554bae9acee9f6e670e2f7c03c229dfc40b.zip
Now making second weapon
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h1
-rw-r--r--src/ft_get_fps_count.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 8a7cfcb..c91f97f 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -17,7 +17,6 @@
#include <cub3d_structs.h>
#include <stddef.h>
#include <stdint.h>
-#include <time.h>
/*
** ====== STRUCTS ======
diff --git a/src/ft_get_fps_count.c b/src/ft_get_fps_count.c
index 74afb45..7ed1163 100644
--- a/src/ft_get_fps_count.c
+++ b/src/ft_get_fps_count.c
@@ -29,7 +29,7 @@ static void
static clock_t curr_time = 0;
curr_time += dt;
- if (dt > 0 && ft_clock_to_ms(curr_time) > 200.0)
+ if (dt > 0 && ft_clock_to_ms(curr_time) > 400.0)
{
cl->plist.fire = 0;
curr_time -= CLOCKS_PER_SEC;