aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:14:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:14:26 +0100
commitce43b1cd1caa539af687425f58a6999a20807878 (patch)
tree34631aef16b6eb1d5d650fe9e900916f9810215d /inc
parentMakefile update (diff)
download42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.gz
42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.bz2
42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.xz
42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.zst
42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.zip
Going full stack is bav
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h4
-rw-r--r--inc/cub3d_structs.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 1f8abd4..edc462f 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -23,12 +23,12 @@
*/
void ft_init_funptr(t_cub *clist);
-int8_t ft_init_cub3d(t_cub **clist);
+int8_t ft_init_cub3d(t_cub *clist);
int ft_init_winlx(t_cub *clist);
int ft_init_winptr(t_cub *clist);
t_ray ft_init_s_ray(void);
t_rgb ft_init_rgb(void);
-t_map *ft_init_map(void);
+int8_t ft_init_map(t_map *mlist);
/*
** ====== HOOKS ======
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index b7d49a7..b19eae6 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -144,9 +144,9 @@ typedef struct s_cub
pthread_t tid;
int (*key_ptr[6])(struct s_cub*);
int8_t (*get_ptr[11])(char**, struct s_cub*);
- struct s_win *wlist;
- struct s_player *plist;
- struct s_map *mlist;
+ struct s_win wlist;
+ struct s_player plist;
+ struct s_map mlist;
struct s_ray rlist;
struct s_img img;
struct s_rgb f_rgb;