From 273459283c98b5f10814fdf74c74c2e6a13f10c0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 13 Mar 2020 18:09:55 +0100 Subject: Not ideal --- src/ft_key_loop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ft_key_loop.c') diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index a7af38e..647b887 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -83,6 +83,8 @@ int { cl->key_ptr[cl->key_input[i]](cl); ft_collision(old_y, old_x, cl->key_input[i], cl); + if (cl->key_input[i] >= 0 && cl->key_input[i] <= 3) + ft_sfx_footstep(cl); if (cl->mlist.isnlvl && !cl->plist.isdead) { if ((uint32_t)cl->plist.pos_x == cl->mlist.nlx && @@ -94,7 +96,7 @@ int } i++; } - /* if (cl->key_input[0] != -1) */ + if (cl->key_input[0] != -1) ft_draw_scene(cl); return (0); } -- cgit v1.2.3