diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:06:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:06:59 +0100 |
commit | a383bde7d29293919eb635aeb14760a7a55e12b3 (patch) | |
tree | 76000460117d1ab1348d98a03e2c92215755fde8 /src/ft_suffer_animation.c | |
parent | Fuck threads and forks (diff) | |
download | 42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.gz 42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.bz2 42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.xz 42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.zst 42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.zip |
Removed footsteps, in progress
Diffstat (limited to 'src/ft_suffer_animation.c')
-rw-r--r-- | src/ft_suffer_animation.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c index 651f4dd..6933f56 100644 --- a/src/ft_suffer_animation.c +++ b/src/ft_suffer_animation.c @@ -31,10 +31,8 @@ void { x = -1; while (++x < (int32_t)cl->wlist.x_size) - { *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = 0x00880404; - } } mlx_put_image_to_window(cl->wlist.wlx, cl->wlist.winptr, cl->img.img, 0, 0); @@ -47,7 +45,8 @@ void ft_sfx_death(cl); /* TODO death screen here */ } - ft_sfx_trap(cl); + else + ft_sfx_trap(cl); } void @@ -77,7 +76,10 @@ void { cl->plist.isdead = 1; ft_warp_level(cl->mlist.filename, cl); + ft_sfx_death(cl); + /* TODO death screen here */ } - /* TODO death screen here */ + else + ft_sfx_trap(cl); cl->doicast = 0; } |