diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-12 17:48:43 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-12 17:48:43 +0100 |
commit | 88cd7098410c7ab80baecc6c2a4d5da99e10162f (patch) | |
tree | 0090da4d5ca1e58466cf4c32a0c38ef0ee894287 /inc | |
parent | removed junk (diff) | |
download | 42-cub3d-88cd7098410c7ab80baecc6c2a4d5da99e10162f.tar.gz 42-cub3d-88cd7098410c7ab80baecc6c2a4d5da99e10162f.tar.bz2 42-cub3d-88cd7098410c7ab80baecc6c2a4d5da99e10162f.tar.xz 42-cub3d-88cd7098410c7ab80baecc6c2a4d5da99e10162f.tar.zst 42-cub3d-88cd7098410c7ab80baecc6c2a4d5da99e10162f.zip |
kk
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d_defines.h | 3 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 4 |
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; |