diff options
-rw-r--r-- | src/ft_big_t.c | 1 | ||||
-rw-r--r-- | src/ft_draw_handweap.c | 6 | ||||
-rw-r--r-- | src/ft_draw_sprite.c | 6 | ||||
-rw-r--r-- | src/ft_floor_threads.c | 6 | ||||
-rw-r--r-- | src/ft_wall_threads.c | 2 |
5 files changed, 10 insertions, 11 deletions
diff --git a/src/ft_big_t.c b/src/ft_big_t.c index 5fe65c6..00beebf 100644 --- a/src/ft_big_t.c +++ b/src/ft_big_t.c @@ -108,4 +108,3 @@ void i++; } } - diff --git a/src/ft_draw_handweap.c b/src/ft_draw_handweap.c index 42e7bfd..a2eabf3 100644 --- a/src/ft_draw_handweap.c +++ b/src/ft_draw_handweap.c @@ -17,13 +17,13 @@ static void ft_put_weapon_image(int8_t w_id, int16_t y, int16_t x, t_cub *cl) { *(cl->img.ptr + x * 4 + (cl->img.sizeline * y)) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y); *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 1) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y + 1); *(cl->img.ptr + x * 4 + (cl->img.sizeline * y) + 2) = - (uint8_t)*(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * + *(cl->tweap[w_id].ptr + cl->tweap[w_id].tex_x * 4 + 4 * cl->tweap[w_id].img_w * cl->tweap[w_id].tex_y + 2); } diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index a127e31..2bf8274 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -51,9 +51,9 @@ void { dist_tab[jt][it] = ((cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) * - (cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) + - (cl->plist.pos_y - cl->sprites[jt][it].s_pos_y) * - (cl->plist.pos_y - cl->sprites[jt][it].s_pos_y)); + (cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) + + (cl->plist.pos_y - cl->sprites[jt][it].s_pos_y) * + (cl->plist.pos_y - cl->sprites[jt][it].s_pos_y)); } it = -1; } diff --git a/src/ft_floor_threads.c b/src/ft_floor_threads.c index 05f75aa..c98395a 100644 --- a/src/ft_floor_threads.c +++ b/src/ft_floor_threads.c @@ -70,7 +70,7 @@ void t_cub *cl; cl = (t_cub *)vargp; - y = (cl->wlist.y_size / 2); + y = (cl->wlist.y_size / 2); while (y < (cl->wlist.y_size)) { x = 2 * (cl->wlist.x_size / 5); @@ -94,7 +94,7 @@ void t_cub *cl; cl = (t_cub *)vargp; - y = (cl->wlist.y_size / 2); + y = (cl->wlist.y_size / 2); while (y < (cl->wlist.y_size)) { x = 3 * (cl->wlist.x_size / 5); @@ -118,7 +118,7 @@ void t_cub *cl; cl = (t_cub *)vargp; - y = (cl->wlist.y_size / 2); + y = (cl->wlist.y_size / 2); while (y < (cl->wlist.y_size)) { x = 4 * (cl->wlist.x_size / 5); diff --git a/src/ft_wall_threads.c b/src/ft_wall_threads.c index 4855da6..f7e6e50 100644 --- a/src/ft_wall_threads.c +++ b/src/ft_wall_threads.c @@ -97,7 +97,7 @@ void while (i < 5 * (cl->wlist.x_size / 5)) { ft_draw_verline(cl, i, - cl->rlist.wall_t_tab[i],cl->rlist.wall_b_tab[i]); + cl->rlist.wall_t_tab[i], cl->rlist.wall_b_tab[i]); i++; } pthread_exit(0x0); |