-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_double_key.c
22 lines (20 loc) · 1.24 KB
/
check_double_key.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_double_key.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fflores <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/04 13:15:14 by fflores #+# #+# */
/* Updated: 2020/11/04 13:15:15 by fflores ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
void check_double_key(t_data *data)
{
if (data->conf.double_key_n != 1 || data->conf.double_key_e != 1
|| data->conf.double_key_s != 1 || data->conf.double_key_w != 1
|| data->conf.double_key_sp != 1 || data->conf.double_key_c != 1
|| data->conf.double_key_f != 1 || data->conf.double_key_r != 1)
ft_put_error("\nInvalid key or double key\n", EINVAL);
}