aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index 1804118..ea27d29 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,10 +173,12 @@ void
cl->rlist.row_dist_tab[cl->wlist.y_size - y] = cl->rlist.row_dist;
y++;
}
- 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);
+ 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); */
x = 0;
while (x < 2)
{