From 575990647d8ee677ff9515ecb0c17da9fe66312f Mon Sep 17 00:00:00 2001
From: salaaad2 <arthudurant263@gmail.com>
Date: Mon, 16 Mar 2020 18:57:40 +0100
Subject: fatfingered solution to the sprites problem, changes needed

---
 inc/cub3d.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 6c9a010..348d82b 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -78,6 +78,7 @@ int8_t			ft_draw_verline(t_cub *cl, int32_t x,
 							int32_t y1, int32_t y2);
 void			ft_sprite_width(t_cub *cl, t_sprite *sprite);
 void			ft_sprite_height(t_cub *cl, t_sprite *sprite);
+void			ft_sort_sprites(t_cub *cl);
 void			ft_calc_sprite(t_cub *cl);
 void			ft_draw_sprite(t_cub *cl, t_sprite *sprite);
 void			ft_calc_trap(t_cub *cl);
-- 
cgit v1.2.3


From 8ca4c9563629c60122ba998ad64ad2d999d0902a Mon Sep 17 00:00:00 2001
From: salaaad2 <arthudurant263@gmail.com>
Date: Mon, 16 Mar 2020 19:14:11 +0100
Subject: it just works (unpeu)

---
 inc/cub3d_structs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'inc')

diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 7545f3b..6db79de 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -197,7 +197,7 @@ typedef struct			s_map
 	size_t				mapl_len;
 	int32_t				sprite_nbr;
 	uint8_t				sprite_var;
-	int32_t				sprite_order[4096];
+	int32_t				sprite_order[8][4096];
 	int32_t				traps_nbr;
 	int32_t				traps_order[512];
 	size_t				line_chk;
-- 
cgit v1.2.3


From 0cde149ec5e478c3d6283136065ff0129231c25d Mon Sep 17 00:00:00 2001
From: salaaad2 <arthudurant263@gmail.com>
Date: Mon, 16 Mar 2020 19:43:16 +0100
Subject: bunchoshit

---
 inc/cub3d.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 348d82b..4b52aab 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -79,6 +79,7 @@ int8_t			ft_draw_verline(t_cub *cl, int32_t x,
 void			ft_sprite_width(t_cub *cl, t_sprite *sprite);
 void			ft_sprite_height(t_cub *cl, t_sprite *sprite);
 void			ft_sort_sprites(t_cub *cl);
+void			ft_sort_s_t(t_cub *cl, t_sprite *sprites[4096]);
 void			ft_calc_sprite(t_cub *cl);
 void			ft_draw_sprite(t_cub *cl, t_sprite *sprite);
 void			ft_calc_trap(t_cub *cl);
-- 
cgit v1.2.3


From 0036fe1e23be842e8baa48162bcdb3bf632b02de Mon Sep 17 00:00:00 2001
From: salaaad2 <arthudurant263@gmail.com>
Date: Wed, 18 Mar 2020 18:59:59 +0100
Subject: gng

---
 inc/cub3d.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 4b52aab..9c906be 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -76,10 +76,8 @@ void			ft_draw_circle(float a, float b,
 						int32_t color, t_cub *cl);
 int8_t			ft_draw_verline(t_cub *cl, int32_t x,
 							int32_t y1, int32_t y2);
-void			ft_sprite_width(t_cub *cl, t_sprite *sprite);
-void			ft_sprite_height(t_cub *cl, t_sprite *sprite);
+void			ft_sprite_h_w(t_cub *cl, t_sprite *sprite);
 void			ft_sort_sprites(t_cub *cl);
-void			ft_sort_s_t(t_cub *cl, t_sprite *sprites[4096]);
 void			ft_calc_sprite(t_cub *cl);
 void			ft_draw_sprite(t_cub *cl, t_sprite *sprite);
 void			ft_calc_trap(t_cub *cl);
-- 
cgit v1.2.3