aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 14:57:04 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 14:57:04 +0100
commitebcfbdc44e2cdc64dca661520e8d0db2652da64e (patch)
tree687b919c4b859476ed495f7a5d68dfc41fe9af96 /src/ft_exit.c
parentParsed weapons spawns (diff)
download42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.gz
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.bz2
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.xz
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.tar.zst
42-cub3d-ebcfbdc44e2cdc64dca661520e8d0db2652da64e.zip
Weapons sprites do draw
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 1f47f02..91f1c4f 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -92,14 +92,14 @@ static void
mlx_destroy_image(clist->wlist.wlx, clist->tlist[18].img);
if (clist->mlist.isweapon[1] && clist->tlist[19].img)
mlx_destroy_image(clist->wlist.wlx, clist->tlist[19].img);
- if (cl->tweap[0].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[0].img);
- if (cl->tweap[1].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[1].img);
- if (cl->tweap[2].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[2].img);
- if (cl->tweap[3].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[3].img);
+ if (clist->tweap[0].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[0].img);
+ if (clist->tweap[1].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[1].img);
+ if (clist->tweap[2].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[2].img);
+ if (clist->tweap[3].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[3].img);
ft_del_extra_sprites(clist);
}