From ce43b1cd1caa539af687425f58a6999a20807878 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 3 Mar 2020 16:14:26 +0100 Subject: Going full stack is bav --- inc/cub3d.h | 4 ++-- inc/cub3d_structs.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'inc') 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; -- cgit v1.2.3