diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_floor_cast.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c index f371359..c9c44e5 100644 --- a/src/ft_floor_cast.c +++ b/src/ft_floor_cast.c @@ -69,11 +69,10 @@ void cl = (t_cub *)vargp; y = (cl->wlist.y_size / 2); - y += 0 * (cl->wlist.y_size / 2 / 4); - while (y < (cl->wlist.y_size / 2) + (1 * (cl->wlist.y_size / 2 / 4))) + while (y < (cl->wlist.y_size)) { x = 0; - while (x < cl->wlist.x_size) + while (x < cl->wlist.x_size / 4) { if (cl->rlist.wall_bz[x] <= y) ft_floor_cast_loop(y, x, cl); @@ -94,11 +93,11 @@ void cl = (t_cub *)vargp; y = (cl->wlist.y_size / 2); - y += 1 * (cl->wlist.y_size / 2 / 4); - while (y < (cl->wlist.y_size / 2) + (2 * (cl->wlist.y_size / 2 / 4))) + /* y += 1 * (cl->wlist.y_size / 2 / 4); */ + while (y < (cl->wlist.y_size)) { - x = 0; - while (x < cl->wlist.x_size) + x = cl->wlist.x_size / 4; + while (x < 2 * (cl->wlist.x_size / 4)) { if (cl->rlist.wall_bz[x] <= y) ft_floor_cast_loop(y, x, cl); @@ -119,11 +118,10 @@ void cl = (t_cub *)vargp; y = (cl->wlist.y_size / 2); - y += (2 * (cl->wlist.y_size / 2 / 4)); - while (y < (cl->wlist.y_size / 2) + (3 * (cl->wlist.y_size / 2 / 4))) + while (y < (cl->wlist.y_size)) { - x = 0; - while (x < cl->wlist.x_size) + x = 2 * (cl->wlist.x_size / 4); + while (x < 3 * (cl->wlist.x_size / 4)) { if (cl->rlist.wall_bz[x] <= y) ft_floor_cast_loop(y, x, cl); @@ -144,11 +142,10 @@ void cl = (t_cub *)vargp; y = (cl->wlist.y_size / 2); - y += (3 * (cl->wlist.y_size / 2 / 4)); - while (y < (cl->wlist.y_size / 2) + (4 * (cl->wlist.y_size / 2 / 4))) + while (y < (cl->wlist.y_size)) { - x = 0; - while (x < cl->wlist.x_size) + x = 3 * (cl->wlist.x_size / 4); + while (x < 4 * (cl->wlist.x_size / 4)) { if (cl->rlist.wall_bz[x] <= y) ft_floor_cast_loop(y, x, cl); @@ -175,6 +172,6 @@ void pthread_join(tid[1], 0x0); pthread_join(tid[2], 0x0); pthread_join(tid[3], 0x0); - /* pthread_exit(0x0); */ + pthread_exit(0x0); return (0x0); } |