aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inc/cub3d_defines.h3
-rw-r--r--inc/cub3d_structs.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 457f121..bda46fe 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -118,7 +118,7 @@ enum
# define FT_CHRST_MAP_ENTRY "01234NSEWLT "
# define FT_CHRST_SPAWN "NSEW"
# define FT_CHRST_MAP_NON_WALL "02NESWLT"
-# define FT_CHRST_COLLISION "12 "
+# define FT_CHRST_COLLISION "123456789 "
# define FT_CHRST_DETECT "1L"
/*
@@ -146,6 +146,7 @@ enum
# define FT_ERR_COLOR_ALPHA "colors should be digits only"
# define FT_ERR_COLOR_MAX "colors should be maximum 255"
# define FT_ERR_COLOR_ARGS "colors should be three numbers with commas"
+# define FT_ERR_SPRITE_DUMB "bad sprite order"
# define FT_ERR_UNFINISHED "no map"
# define FT_ERR_MAP_LEN "map length inconsistency"
# define FT_ERR_ILL_ENTRY "illegal map entry"
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 8fba623..122ce16 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -165,7 +165,7 @@ typedef struct s_map
char *so_tex_path;
char *ea_tex_path;
char *we_tex_path;
- char *sprite_path;
+ char **sprite_path;
char *nl_tex_path;
char *fl_tex_path;
char *ce_tex_path;
@@ -219,7 +219,7 @@ typedef struct s_cub
pid_t mpid;
int (*key_ptr[6])(struct s_cub*);
int8_t (*get_ptr[14])(char**, struct s_cub*);
- char ref[15][3];
+ char ref[22][3];
struct s_win wlist;
struct s_player plist;
struct s_map mlist;