aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:21:29 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:21:29 +0100
commit8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d (patch)
treeeaf3adca241ec77c8af19adbfdf5871e305c6d01 /src/ft_key_loop.c
parentWorks fine (diff)
download42-cub3d-8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d.tar.gz
42-cub3d-8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d.tar.bz2
42-cub3d-8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d.tar.xz
42-cub3d-8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d.tar.zst
42-cub3d-8fda101ccda5c23bfd9cd604f0c3124a9b83aa1d.zip
ok bav
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index 0108202..e0177e2 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -89,6 +89,7 @@ int
{
ft_sfx_footstep(cl);
ft_collision(old_y, old_x, cl->key_input[i], cl);
+ ft_find_item(&cl->plist, &cl->mlist, cl);
if (cl->mlist.isnlvl)
{
if ((uint32_t)cl->plist.pos_x == cl->mlist.nlx &&