diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 02:35:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 02:35:49 +0100 |
commit | 8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7 (patch) | |
tree | 026b97aaa56ac87328d1fa7332872e86b1b15d32 /inc | |
parent | Added sound effects files (diff) | |
download | 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.gz 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.bz2 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.xz 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.zst 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.zip |
Freed leaks
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 4 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 2 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 2103295..a2d050c 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -81,7 +81,8 @@ void ft_draw_sprite(t_cub *cl, t_sprite *sprite); void ft_calc_trap(t_cub *cl); void ft_draw_traps(t_cub *cl, t_sprite *sprite); void ft_draw_skybox(t_cub *cl); -void ft_suffer_animation(t_cub *cl); +void ft_macos_suffer_animation(t_cub *cl); +void ft_linux_suffer_animation(t_cub *cl); void ft_draw_life_bar(t_win *wl, t_cub *cl); /* @@ -153,6 +154,7 @@ int8_t ft_save_to_bmp(t_cub *cl); int ft_error(uint8_t retval, const char *errmsg, t_cub *clist); uint8_t ft_free_words(char **words); uint8_t ft_free_sprites(char **sprites); +void ft_del_extra_sprites(t_cub *cl); int8_t ft_warp_level(char *path, t_cub *cl); int ft_exit(uint8_t exit_code, t_cub *clist); uint32_t ft_rgb_to_hex(t_rgb rgb); diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 588670d..ab3a910 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -89,7 +89,7 @@ enum # define FT_SFX_N_LVL_PATH "./media/sound/sfx/next_lvl.wav" # define FT_SFX_SCR_ONE_PATH "./media/sound/sfx/scream_one.wav" # define FT_SFX_SCR_TWO_PATH "./media/sound/sfx/scream_two.wav" -# define FT_SFX_SCR_TRAP_PATH "./media/sound/sfx/trap.wav" +# define FT_SFX_TRAP_PATH "./media/sound/sfx/trap.wav" # if FT_OS == 1 # define FT_MUS_CMD "/usr/bin/afplay --volume 0.2 %s" # define FT_SFX_DEATH "/usr/bin/afplay --volume 0.2 ./media/sound/sfx/death_screen.wav" diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index e1ca235..d5b3bf7 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -237,7 +237,6 @@ typedef struct s_cub struct s_map mlist; struct s_ray rlist; struct s_img img; - struct s_img red_scr; struct s_rgb f_rgb; struct s_rgb c_rgb; struct s_img tlist[16]; |