From ad0b32676e8ab435ea5767f7ca37496bf15df714 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 20 Mar 2020 19:33:03 +0100 Subject: Better bounce --- src/ft_key_loop.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ft_key_loop.c') diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index cf412f7..77f2d7d 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -102,6 +102,7 @@ int } i++; } + cl->moves = (cl->key_input[0] == -1) ? (0) : (cl->moves); begin_frame = clock(); ft_draw_scene(cl); ft_get_fps_count(clock() - begin_frame, cl); -- cgit v1.2.3