aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_treat_args.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 02:29:21 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 02:29:21 +0100
commitee87f5ee4aa1c79d1dedf95994a392282aa4bd16 (patch)
treed438d5e46a10aa4d11dd670f9e0469ce257f426a /src/ft_treat_args.c
parentOSEF again (diff)
download42-cub3d-ee87f5ee4aa1c79d1dedf95994a392282aa4bd16.tar.gz
42-cub3d-ee87f5ee4aa1c79d1dedf95994a392282aa4bd16.tar.bz2
42-cub3d-ee87f5ee4aa1c79d1dedf95994a392282aa4bd16.tar.xz
42-cub3d-ee87f5ee4aa1c79d1dedf95994a392282aa4bd16.tar.zst
42-cub3d-ee87f5ee4aa1c79d1dedf95994a392282aa4bd16.zip
Music is bav but can't kill
Diffstat (limited to 'src/ft_treat_args.c')
-rw-r--r--src/ft_treat_args.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ft_treat_args.c b/src/ft_treat_args.c
index 338b54f..dab29ac 100644
--- a/src/ft_treat_args.c
+++ b/src/ft_treat_args.c
@@ -32,8 +32,6 @@ uint8_t
uint8_t
ft_use_args(int argc, const char *argv[], t_cub *clist)
{
- pthread_t tid;
-
if (argc < 3)
{
if (ft_init_winptr(clist) < 0)
@@ -41,9 +39,7 @@ uint8_t
ft_draw_scene(clist);
if (clist->mlist->ismusic)
{
- pthread_create(&tid, NULL, ft_music_thread, clist);
- /* pthread_join(tid, NULL); */
-
+ pthread_create(&clist->tid, NULL, ft_music_thread, clist);
}
ft_hooks_and_loops(clist->wlist, clist);
}