From 6786e8680418cfb90dca896860327ca38fbd31fd Mon Sep 17 00:00:00 2001 From: Maelys Date: Sat, 9 Nov 2024 17:21:45 +0100 Subject: [PATCH] fix_leaks --- includes/game/game.h | 2 +- includes/game/settings.h | 4 ++-- maps/g_ea_spiral.cub | 2 +- maps/g_no_map.cub | 3 ++- maps/g_so_maze.cub | 2 +- maps/w_char_color.cub | 2 +- src/cub3d.c | 3 +++ 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/includes/game/game.h b/includes/game/game.h index 4057e3f..207af14 100644 --- a/includes/game/game.h +++ b/includes/game/game.h @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/09/11 16:38:40 by adjoly #+# #+# */ -/* Updated: 2024/11/07 12:15:23 by adjoly ### ########.fr */ +/* Updated: 2024/11/09 16:03:52 by madumerg ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/includes/game/settings.h b/includes/game/settings.h index ecaebfa..0be1752 100644 --- a/includes/game/settings.h +++ b/includes/game/settings.h @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/04 14:06:39 by adjoly #+# #+# */ -/* Updated: 2024/11/06 14:02:22 by madumerg ### ########.fr */ +/* Updated: 2024/11/09 15:54:46 by madumerg ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,7 @@ # define WINDOW_W 1600 # define WINDOW_H 900 # define PLAYER_ROT_SPEED 0.034906585039887 -# define PLAYER_SPEED 3 +# define PLAYER_SPEED 5 # define FOV 70 # define CHUNK_SIZE 64 diff --git a/maps/g_ea_spiral.cub b/maps/g_ea_spiral.cub index 136d534..673d884 100644 --- a/maps/g_ea_spiral.cub +++ b/maps/g_ea_spiral.cub @@ -7,7 +7,7 @@ C 67,4,22 F 50,0,137 111111111111111111111111111111111 -100000000000000000000000000000E11 +1E0000000000000000000000000000011 1001111111111111111111111111111 100110000000000000000000000011111 100110011111111111111111110011 diff --git a/maps/g_no_map.cub b/maps/g_no_map.cub index 6ed8136..ec8266c 100644 --- a/maps/g_no_map.cub +++ b/maps/g_no_map.cub @@ -3,11 +3,12 @@ SO ./img/suki.png WE ./img/cahuete.png EA ./img/kanel.png +C 34,77,12 F 50,0,250 11111111111111111111111111111 10000000000001111111111110001 -1111111110000000000000000001 +1111111110010000000000000001 1111100000000000000000001111 1111000000N000011111111111 11110000000001111111111111 diff --git a/maps/g_so_maze.cub b/maps/g_so_maze.cub index 7a613ff..7b2709c 100644 --- a/maps/g_so_maze.cub +++ b/maps/g_so_maze.cub @@ -10,7 +10,7 @@ F 51,10,25 1000000000000000001111111111 100S00011110000000000000000111111 111011011 111000000011111111 -100011 111111111011 1 +1000111 111111110011 1 1001111111111111111001 10111 1000000000000001 11011111111 1111111110000001 110000000001 diff --git a/maps/w_char_color.cub b/maps/w_char_color.cub index a40ef0d..3a62ac3 100644 --- a/maps/w_char_color.cub +++ b/maps/w_char_color.cub @@ -3,7 +3,7 @@ SO ./img/suki.png WE ./img/cahuete.png EA ./img/kanel.png -C 75ewe,e7, +C 75,rere7,9, F 50,0,250 11111 diff --git a/src/cub3d.c b/src/cub3d.c index 1cdb197..c78ddda 100644 --- a/src/cub3d.c +++ b/src/cub3d.c @@ -60,7 +60,10 @@ int main(int ac, char **av) parsing = init_pars(); if (basics_check(ac, av, &parsing)) + { + free_pars(&parsing); return (EXIT_FAILURE); + } render.mlx = mlx_init(); render.win = mlx_new_window(render.mlx, WINDOW_W, WINDOW_H, "WTF"); player = init_player(parsing);