aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:46:00 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:46:00 +0100
commitfb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3 (patch)
tree9b842ddd18c30696af19efffcd2241f02c580c7c /inc
parentBug fix (diff)
parentfatfingers master (diff)
download42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.gz
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.bz2
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.xz
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.zst
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.zip
Merge branch 'better_sprites'
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h2
-rw-r--r--inc/cub3d_structs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 84ce976..fa42b4f 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -79,7 +79,7 @@ void ft_draw_circle(float a, float b,
int8_t ft_draw_verline(t_cub *cl, int32_t x,
int32_t y1, int32_t y2);
void ft_sprite_h_w(t_cub *cl, t_sprite *sprite);
-void ft_sort_sprites(t_cub *cl);
+void ft_sort_sprites(t_cub *cl, int16_t i, int16_t j);
void ft_calc_sprite(t_cub *cl);
void ft_draw_sprite(t_cub *cl, t_sprite *sprite);
void ft_calc_trap(t_cub *cl);
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index dc2b411..fc3eead 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -202,7 +202,7 @@ typedef struct s_map
size_t map_w;
size_t map_h;
size_t mapl_len;
- int32_t sprite_nbr;
+ int32_t sprite_nbr[4096];
uint8_t sprite_var;
int32_t sprite_order[8][4096];
int32_t traps_nbr;