aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);
}