-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_check_struct.c
23 lines (21 loc) · 1.08 KB
/
ft_check_struct.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_check_struct.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lbrandy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/21 11:45:38 by lbrandy #+# #+# */
/* Updated: 2021/04/02 19:11:38 by lbrandy ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
void check_color(t_textures *tex, int type)
{
if (type == 0)
if (tex->f != -1)
error_handler("duplicate data\n");
if (type == 1)
if (tex->c != -1)
error_handler("duplicate data\n");
}