aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 14:58:26 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 14:58:26 +0100
commita504c1c64239fd27a75144c2c32ccd7f7cd99c9f (patch)
tree50f3032b3d53c45877b32abf95952a7a76a21c26 /src/ft_key_loop.c
parentsprintf is bav (diff)
download42-cub3d-a504c1c64239fd27a75144c2c32ccd7f7cd99c9f.tar.gz
42-cub3d-a504c1c64239fd27a75144c2c32ccd7f7cd99c9f.tar.bz2
42-cub3d-a504c1c64239fd27a75144c2c32ccd7f7cd99c9f.tar.xz
42-cub3d-a504c1c64239fd27a75144c2c32ccd7f7cd99c9f.tar.zst
42-cub3d-a504c1c64239fd27a75144c2c32ccd7f7cd99c9f.zip
FIX
Diffstat (limited to '')
-rw-r--r--src/ft_key_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index d92b37e..a6c1690 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -42,6 +42,7 @@ 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);
}