aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-28 15:30:53 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-28 15:30:53 +0100
commit8f852afcfa170070b6f0ac2e321546990d87e401 (patch)
treec75ea70c8de7d3a7e349ae8d10adec1eab5917ae /src/ft_key_loop.c
parentlets GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO... (diff)
download42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.gz
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.bz2
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.xz
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.zst
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.zip
gang
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index d92b37e..d913c49 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -42,6 +42,9 @@ int
ft_collision(old_y, old_x, cl->plist, cl->mlist);
i++;
}
- ft_draw_scene(cl);
+ if (cl->key_input[0] != -1)
+ {
+ ft_draw_scene(cl);
+ }
return (0);
}