diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_raycasting.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index ea27d29..1804118 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -104,7 +104,7 @@ static void void ft_castray(t_cub *cl) { - /* pthread_t tid[2]; */ + pthread_t tid[2]; uint16_t y; uint16_t x; @@ -173,12 +173,10 @@ void cl->rlist.row_dist_tab[cl->wlist.y_size - y] = cl->rlist.row_dist; y++; } - ft_wall_cast(cl); - ft_floor_cast(cl); - /* pthread_create(&tid[0], 0x0, ft_wall_cast, (void*)cl); */ - /* pthread_create(&tid[1], 0x0, ft_floor_cast, (void*)cl); */ - /* pthread_join(tid[0], 0x0); */ - /* pthread_join(tid[1], 0x0); */ + pthread_create(&tid[0], 0x0, ft_wall_cast, (void*)cl); + pthread_create(&tid[1], 0x0, ft_floor_cast, (void*)cl); + pthread_join(tid[0], 0x0); + pthread_join(tid[1], 0x0); x = 0; while (x < 2) { |