diff --git a/src/execution/execution.c b/src/execution/execution.c index 471c9ec..ad2a71e 100644 --- a/src/execution/execution.c +++ b/src/execution/execution.c @@ -6,13 +6,13 @@ /* By: aortigos -// parseamos el archivo .cub -> -// Inicializamos player / map / textures -> -// Inicializamos mlx -> +// we parse the file .cub -> +// Inicializate player / map / textures -> +// Inicializate mlx -> // Game loop -> -// -> -> mover jugador -// -> -> lanzar raycasting -// -> -> dibujar paredes -// -> -> mostrar imagen en ventana -// salir y liberar memoria +// -> -> move player +// -> -> shoot raycast +// -> -> draw walls +// -> -> show window +// exit and free memory int main(int argc, char **argv) { diff --git a/src/map/read_map.c b/src/map/read_map.c index ff7d463..59a8a67 100644 --- a/src/map/read_map.c +++ b/src/map/read_map.c @@ -6,7 +6,7 @@ /* By: aortigos map2d) return (ft_memfree(map->map), 0); ft_memfree(map->map); - if (!check_tures_space_tab(map->texture2d, count) || !parse_rgb(map->texture2d) + if (!check_tures_space_tab(map->texture2d, count) + || !parse_rgb(map->texture2d) || !check_dup(map) || !check_first_last_line(map->map2d) || !surrounded_by_one(map->map2d)) return (free2d(map->map2d), 0); diff --git a/src/parsing/lst_textures.c b/src/parsing/lst_textures.c index 73a86fc..961241c 100644 --- a/src/parsing/lst_textures.c +++ b/src/parsing/lst_textures.c @@ -6,7 +6,7 @@ /* By: aortigos texture2d) return (freetl(map->ture, map->line, map->fd), 0); if (!read_map_(map, *count)) - return (freetl(map->ture, map->line, map->fd), free2d(map->texture2d), 0); + return (freetl(map->ture, map->line, map->fd), + free2d(map->texture2d), 0); return (freetl(map->ture, map->line, map->fd), 1); } diff --git a/src/parsing/textures.c b/src/parsing/textures.c index ec6a442..7fc9c05 100644 --- a/src/parsing/textures.c +++ b/src/parsing/textures.c @@ -6,7 +6,7 @@ /* By: aortigos cc = NULL; m->ff = NULL;