-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbonus_binding.c
24 lines (22 loc) · 1.07 KB
/
bonus_binding.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* bonus_binding.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ahamdaou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/18 00:43:16 by ahamdaou #+# #+# */
/* Updated: 2020/12/22 23:23:30 by ahamdaou ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
void collision_binding(int key)
{
if (key == KEY_C)
{
if (g_pref.is_collision_enabled)
g_pref.is_collision_enabled = FALSE;
else
g_pref.is_collision_enabled = TRUE;
}
}