aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
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);