diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:23:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 04:23:57 +0100 |
commit | 6714c479c5d9bcb025212de44ec92424458261d6 (patch) | |
tree | 73b7ebbaf1f40d36bb6d453826accd90188a5b10 /src/ft_warp_level.c | |
parent | sounds (diff) | |
download | 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.gz 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.bz2 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.xz 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.zst 42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.zip |
Huge bug on death
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r-- | src/ft_warp_level.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 69b7b78..6f1d387 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -52,17 +52,11 @@ static void cl->c_rgb = ft_init_rgb(); cl->rlist = ft_init_s_ray(); i = -1; - while (++i < 5) + while (++i < 8) { mlx_destroy_image(cl->wlist.wlx, cl->tlist[i].img); cl->tlist[i].img = NULL; } - if (cl->mlist.isnlvl && cl->tlist[5].img) - mlx_destroy_image(cl->wlist.wlx, cl->tlist[5].img); - 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); |