diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 19:33:03 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-20 19:33:03 +0100 |
commit | ad0b32676e8ab435ea5767f7ca37496bf15df714 (patch) | |
tree | e33ded21db111ecfa4a96f1a718a6ef1cafc8a02 /src/ft_key_loop.c | |
parent | it's not working (diff) | |
download | 42-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 'src/ft_key_loop.c')
-rw-r--r-- | src/ft_key_loop.c | 1 |
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); |