aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-28 16:46:40 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-28 16:46:40 +0100
commitb3aecb150f55ebc9dde7c1b09559d1566e9e92a6 (patch)
treefec17255ec594ddfb6f98121d987ada32461db06 /inc
parentnormed (diff)
download42-cub3d-b3aecb150f55ebc9dde7c1b09559d1566e9e92a6.tar.gz
42-cub3d-b3aecb150f55ebc9dde7c1b09559d1566e9e92a6.tar.bz2
42-cub3d-b3aecb150f55ebc9dde7c1b09559d1566e9e92a6.tar.xz
42-cub3d-b3aecb150f55ebc9dde7c1b09559d1566e9e92a6.tar.zst
42-cub3d-b3aecb150f55ebc9dde7c1b09559d1566e9e92a6.zip
All in sprites
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h2
-rw-r--r--inc/cub3d_structs.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 7b4d1b8..3cee49a 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -303,6 +303,6 @@ enum
*/
# define FT_PARSE_END_RET 25
-# define FT_TOTAL_SPRT 9
+# define FT_TOTAL_SPRT 13
# endif
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 639710f..5af18a4 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -205,13 +205,8 @@ typedef struct s_map
size_t mapl_len;
int16_t sprite_nbr[FT_TOTAL_SPRT];
uint8_t sprite_var;
- uint8_t weapon_var;
int32_t sprite_order[FT_TOTAL_SPRT][4096];
int32_t st_o[FT_TOTAL_SPRT + 1];
- int32_t heals_nbr;
- int32_t weaps_nbr[3];
- int32_t heals_order[64];
- int32_t weaps_order[3][1];
size_t line_chk;
size_t map_start;
uint8_t isspawn;
@@ -274,8 +269,6 @@ typedef struct s_cub
struct s_img tweap[6];
struct s_img tnum[12];
struct s_sprite **sprites;
- struct s_sprite heals[64];
- struct s_sprite **weaps;
struct s_sfx sfx[13];
} t_cub;