aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-28 16:01:25 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-28 16:01:25 +0100
commit1b3cf4e3ce43e556ef47c669511620815b747221 (patch)
treebe53e93d6fd39578ce71e82502c1289aac98e819 /src/ft_init_lists.c
parentEverything is terrible but this might work (diff)
download42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.gz
42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.bz2
42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.xz
42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.tar.zst
42-cub3d-1b3cf4e3ce43e556ef47c669511620815b747221.zip
I understood
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 1b4ab59..f9c5c6c 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -14,6 +14,9 @@ t_win
if (!(wlist->wlx = ft_calloc(1, 1)) ||
!(wlist->winptr = ft_calloc(1, 1)))
return (NULL);
+ wlist->inited = 0;
+ wlist->x_size = 0;
+ wlist->y_size = 0;
return (wlist);
}
@@ -38,6 +41,6 @@ t_cub
return (NULL);
clist->map[1] = 0;
clist->map_w = 0;
- clist->line_chk = 1;
+ clist->line_chk = 0;
return (clist);
}