aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 19:04:46 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 19:04:46 +0100
commit6463914b0dc8136c453a1c163dd98f39e55e1c21 (patch)
tree0df94a05e92460e578da7092fde5b2502c8cceef /src/ft_key_loop.c
parentIt's going well (diff)
download42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.gz
42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.bz2
42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.xz
42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.tar.zst
42-cub3d-6463914b0dc8136c453a1c163dd98f39e55e1c21.zip
Decent tier
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index e0177e2..f44da13 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -80,7 +80,6 @@ int
const float old_x = cl->plist.pos_x;
clock_t begin_frame;
- begin_frame = clock();
i = 0;
while (i < 5 && cl->key_input[i] != -1 && cl->key_input[i] <= 5)
{
@@ -103,6 +102,7 @@ int
}
i++;
}
+ begin_frame = clock();
ft_draw_scene(cl);
ft_get_fps_count(clock() - begin_frame, cl);
return (0);