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