aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
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;