From a6dbe3b5710f719b3f02ba0044a72c64ee4155ac Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 13:54:11 +0200 Subject: Bug fix --- inc/cub3d.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 84d9ea1..50f2bf3 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -17,6 +17,7 @@ #include #include #include +#include /* ** ====== STRUCTS ====== @@ -228,6 +229,14 @@ void *ft_sfx_weapon_three_load_thread(void *vargp); void *ft_sfx_weapon_three_fire_thread(void *vargp); void *ft_sfx_ooa_thread(void *vargp); +/* +** ====== TIMINGS ====== +*/ + +float ft_clock_to_ms(clock_t ticks); +void ft_handle_firing(clock_t dt, t_cub *cl); +void ft_get_fps_count(clock_t delta_time, t_cub *cl); + /* ** ====== DELETION ====== */ @@ -246,14 +255,12 @@ int ft_exit(uint8_t exit_code, t_cub *clist); void ft_set_minimap_scale(t_cub *clist); void ft_enable_music(t_cub *cl); -void ft_music_fork(char **mcmd_words, char *const envp[]); int8_t ft_save_to_bmp(t_cub *cl); int8_t ft_warp_level(char *path, t_cub *cl); uint32_t ft_rgb_to_hex(float dist, t_rgb rgb, t_cub *cl); t_bmp_rgb ft_hex_to_rgb(uint32_t color); uint32_t ft_darken(t_rgb rgb, t_cub *cl); void ft_death_screen(t_cub *cl); -void ft_get_fps_count(clock_t delta_time, t_cub *cl); void ft_find_item(t_player *pl, t_map *ml, t_cub *cl); int8_t ft_switch_weap_one(t_cub *cl); int8_t ft_switch_weap_two(t_cub *cl); -- cgit v1.2.3