aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h8
-rw-r--r--inc/cub3d_structs.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 8b15838..619d0d4 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -101,14 +101,14 @@ enum retvals
# define FT_ERR_ALLOCATE "allocation error"
# define FT_ERR_READ "read error"
-# define FT_ERR_NOT_A_CUB "given map is not a .cub"
# define FT_ERR_ARGS "too many or to few arguments"
# define FT_ERR_RES_SMALL "resolution is too small"
# define FT_ERR_RES_ALPHA "resolution should be digits only"
+# define FT_ERR_NOT_A_CUB "given map is not a .cub"
# define FT_ERR_NOT_A_XPM "given texture is not a .xpm"
# 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 three numbers separated by commas"
+# define FT_ERR_COLOR_ARGS "colors should be three numbers separated by commas"
# define FT_ERR_UNFINISHED "no map"
# define FT_ERR_MAP_LEN "map length inconsistency"
# define FT_ERR_ILL_ENTRY "illegal map entry"
@@ -122,6 +122,8 @@ enum retvals
# define FT_ERR_RD_EA "could not find east side texture file"
# define FT_ERR_RD_WE "could not find west side texture file"
# define FT_ERR_RD_SP "could not find sprite texture file"
+# define FT_ERR_RD_NL_TEX "could not find next level texture file"
+# define FT_ERR_RD_NL_MAP "could not find next level map file"
/*
** ====== MISSING ERROR MSG ======
@@ -133,6 +135,8 @@ enum retvals
# define FT_ERR_MISS_EAST "east side texture"
# define FT_ERR_MISS_WEST "west side texture"
# define FT_ERR_MISS_SPRITE "sprite texture"
+# define FT_ERR_MISS_NLVL_PATH "next level path"
+# define FT_ERR_MISS_NLVL "next level texture"
# define FT_ERR_MISS_RESOLUTION "resolution"
# define FT_ERR_MISS_FLOOR_C "floor color"
# define FT_ERR_MISS_CEIL_C "ceiling color"
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 26e7455..a4761a2 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -132,7 +132,7 @@ typedef struct s_cub
uint8_t w_side;
uint8_t ishud;
uint16_t currlvl;
- char errmsg[40];
+ char errmsg[64];
int32_t key_input[5];
int (*key_ptr[6])(struct s_cub*);
struct s_win *wlist;