diff options
author | Rudy Bousset <bousset.rudy@gmail.com> | 2020-05-14 15:03:28 +0200 |
---|---|---|
committer | Rudy Bousset <bousset.rudy@gmail.com> | 2020-05-14 15:03:28 +0200 |
commit | 113147926d79638132f145a71d0b9a3a74518589 (patch) | |
tree | 647a92ec33e9c211f22c6eb3bdbd7f85fd43e694 /src/ft_exit.c | |
parent | Added music to the main story (diff) | |
download | 42-cub3d-113147926d79638132f145a71d0b9a3a74518589.tar.gz 42-cub3d-113147926d79638132f145a71d0b9a3a74518589.tar.bz2 42-cub3d-113147926d79638132f145a71d0b9a3a74518589.tar.xz 42-cub3d-113147926d79638132f145a71d0b9a3a74518589.tar.zst 42-cub3d-113147926d79638132f145a71d0b9a3a74518589.zip |
Can't exit cleanly
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index d9d9ef8..8d1b3ba 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -76,7 +76,8 @@ int { if (FT_OS == 1) mlx_destroy_image(clist->wlist.wlx, clist->img.img); - mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr); + if (clist->clickclose == 0) + mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr); } ft_cancel_threads(clist); ft_del_map(&clist->mlist); |