1
0

sixty_percent

This commit is contained in:
Maelys
2024-09-16 15:09:07 +02:00
parent fa4c3d6d39
commit a6929e15e1
15 changed files with 270 additions and 55 deletions

View File

@ -6,25 +6,24 @@
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 16:58:27 by madumerg #+# #+# */
/* Updated: 2024/09/12 16:56:30 by madumerg ### ########.fr */
/* Updated: 2024/09/16 13:54:52 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
#include "libft.h"
#include "parsing.h"
t_pars init_pars(void)
{
t_pars new;
new = ft_calloc(sizeof(t_pars));
if (!new)
return (NULL);
new->f_color = 0;
new->c_color = 0;
new->coor->x = 0;
new->coor->y = 0
new.f_color = 0;
new.c_color = 0;
new.coor.x = 0;
new.coor.y = 0;
new.no_png = NULL;
new.so_png = NULL;
new.we_png = NULL;
new.ea_png = NULL;
return (new);
}
@ -32,10 +31,10 @@ int main(int ac, char **av)
{
t_pars pars;
pars = init_pars(void);
pars = init_pars();
if (check_err_arg(ac, av) == 1)
return (1);
if (verif_info_map(av[1], &pars) == 1)
return (1);
if (verif_info_file(av[1], &pars) == 1)
printf("main\n");
return (0);
}