Norminette errors
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
/* 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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../includes/cub3d.h"
|
||||
|
||||
void render_frame(void *mlx_ptr)
|
||||
void render_frame(void *mlx_ptr)
|
||||
{
|
||||
t_mlx *mlx;
|
||||
|
||||
@@ -27,7 +27,7 @@ void render_frame(void *mlx_ptr)
|
||||
int check_load_ture(t_texture_list *list)
|
||||
{
|
||||
t_texture_list *tmp;
|
||||
mlx_texture_t *texture;
|
||||
mlx_texture_t *texture;
|
||||
|
||||
tmp = list;
|
||||
while (tmp)
|
||||
|
||||
18
src/main.c
18
src/main.c
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -60,7 +60,7 @@ void lst_back_ture(t_texture_list **l_ture, t_texture_list *new)
|
||||
|
||||
int lst_ture(t_data *m, t_texture_list **l_ture)
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
t_texture_list *tmp;
|
||||
|
||||
i = 0;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -35,7 +35,7 @@ void ft_process_rgb_color(t_texture_list *tmp, t_data *m)
|
||||
int color_ture(t_data *m, t_texture_list *l_ture)
|
||||
{
|
||||
t_texture_list *tmp;
|
||||
char **colors;
|
||||
char **colors;
|
||||
|
||||
m->cc = NULL;
|
||||
m->ff = NULL;
|
||||
|
||||
Reference in New Issue
Block a user