diff options
Diffstat (limited to '')
-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; } |