aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_key_loop.c4
1 files changed, 3 insertions, 1 deletions
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);
}