aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-17 19:14:45 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-17 19:14:45 +0100
commit3843a3acf8553e3a01f3c2b80410ccf69142e23f (patch)
tree3afd9f0e92cfc1f18aa43389a56d39e20091e526 /src/ft_init_lists.c
parentMakefile update (diff)
download42-cub3d-3843a3acf8553e3a01f3c2b80410ccf69142e23f.tar.gz
42-cub3d-3843a3acf8553e3a01f3c2b80410ccf69142e23f.tar.bz2
42-cub3d-3843a3acf8553e3a01f3c2b80410ccf69142e23f.tar.xz
42-cub3d-3843a3acf8553e3a01f3c2b80410ccf69142e23f.tar.zst
42-cub3d-3843a3acf8553e3a01f3c2b80410ccf69142e23f.zip
Multi-key in progress
Diffstat (limited to '')
-rw-r--r--src/ft_init_lists.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 95f0488..90b8638 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -67,6 +67,7 @@ static t_cub
*ft_init_cub(void)
{
t_cub *clist;
+ uint8_t i;
if (!(clist = (t_cub*)malloc(sizeof(t_cub))))
return (NULL);
@@ -74,6 +75,12 @@ static t_cub
!(clist->mlist = ft_init_map()))
return (NULL);
ft_bzero(clist->errmsg, 40);
+ i = 0;
+ while (i < 5)
+ {
+ clist->key_input[i] = -1;
+ i++;
+ }
clist->minimap = 0;
clist->f_rgb = ft_init_rgb();
clist->c_rgb = ft_init_rgb();