aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 19:33:03 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-20 19:33:03 +0100
commitad0b32676e8ab435ea5767f7ca37496bf15df714 (patch)
treee33ded21db111ecfa4a96f1a718a6ef1cafc8a02 /src/ft_key_loop.c
parentit's not working (diff)
download42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.gz
42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.bz2
42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.xz
42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.tar.zst
42-cub3d-ad0b32676e8ab435ea5767f7ca37496bf15df714.zip
Better bounce
Diffstat (limited to '')
-rw-r--r--src/ft_key_loop.c1
1 files changed, 1 insertions, 0 deletions
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);