diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:23:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:23:12 +0100 |
commit | 57e497b873d95f7487716e12271a82c6384012f0 (patch) | |
tree | bf23eb88dd0ecf4893c4a8eda0aac247c8e2dcc0 /src | |
parent | Better than nothing (diff) | |
download | 42-cub3d-57e497b873d95f7487716e12271a82c6384012f0.tar.gz 42-cub3d-57e497b873d95f7487716e12271a82c6384012f0.tar.bz2 42-cub3d-57e497b873d95f7487716e12271a82c6384012f0.tar.xz 42-cub3d-57e497b873d95f7487716e12271a82c6384012f0.tar.zst 42-cub3d-57e497b873d95f7487716e12271a82c6384012f0.zip |
I don't use that
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_suffer_animation.c | 2 | ||||
-rw-r--r-- | src/ft_warp_level.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c index 3d9100a..6eacdf1 100644 --- a/src/ft_suffer_animation.c +++ b/src/ft_suffer_animation.c @@ -78,6 +78,6 @@ void /* TODO death screen here */ } else - ft_sfx_trap(cl); + ft_sfx_trap(cl); cl->doicast = 0; } diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 6f1d387..f4a978d 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -52,11 +52,15 @@ static void cl->c_rgb = ft_init_rgb(); cl->rlist = ft_init_s_ray(); i = -1; - while (++i < 8) + while (++i <= 5) { mlx_destroy_image(cl->wlist.wlx, cl->tlist[i].img); cl->tlist[i].img = NULL; } + if (cl->mlist.isftex && cl->tlist[6].img) + mlx_destroy_image(cl->wlist.wlx, cl->tlist[6].img); + if (cl->mlist.isctex && cl->tlist[7].img) + mlx_destroy_image(cl->wlist.wlx, cl->tlist[7].img); if (cl->mlist.istraps && cl->tlist[15].img) mlx_destroy_image(cl->wlist.wlx, cl->tlist[15].img); ft_del_extra_sprites(cl); |