Norminette errors

This commit is contained in:
Angel Ortigosa Perez
2026-01-11 16:05:52 +01:00
parent 09f2b2ccb0
commit 7dcca2a786
6 changed files with 22 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/09 18:46:27 by aortigos #+# #+# */
/* Updated: 2025/12/11 19:57:55 by aortigos ### ########.fr */
/* Updated: 2026/01/11 16:02:05 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */

View File

@@ -6,22 +6,22 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/14 09:35:53 by aortigos #+# #+# */
/* Updated: 2025/12/09 19:45:29 by aortigos ### ########.fr */
/* Updated: 2026/01/11 15:49:14 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "../includes/cub3d.h"
// Main ->
// 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)
{

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/04 09:28:05 by aortigos #+# #+# */
/* Updated: 2025/12/15 10:27:21 by aortigos ### ########.fr */
/* Updated: 2026/01/11 16:04:46 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -67,7 +67,8 @@ int read_map_(t_data *map, int count)
if (!map->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);

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/01 08:48:55 by aortigos #+# #+# */
/* Updated: 2025/12/15 10:27:21 by aortigos ### ########.fr */
/* Updated: 2026/01/11 16:05:14 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/25 19:47:38 by aortigos #+# #+# */
/* Updated: 2025/12/15 10:27:21 by aortigos ### ########.fr */
/* Updated: 2026/01/11 15:50:46 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -28,7 +28,8 @@ int read_map(char *av, t_data *map, int *count)
if (!map->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);
}

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/05 15:42:28 by aortigos #+# #+# */
/* Updated: 2025/12/11 19:57:55 by aortigos ### ########.fr */
/* Updated: 2026/01/11 16:05:24 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */