diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 13:32:40 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 13:32:40 +0100 |
commit | d1097088999c538601158805cf77250d51513f98 (patch) | |
tree | 731f010c02189ff0df4530640a2d30e50160a80a /src/ft_init_lists.c | |
parent | Scale (diff) | |
download | 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.gz 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.bz2 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.xz 42-cub3d-d1097088999c538601158805cf77250d51513f98.tar.zst 42-cub3d-d1097088999c538601158805cf77250d51513f98.zip |
Don't mess with me boy
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 74c1b3d..175f5ee 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -16,6 +16,7 @@ #include <cub3d.h> #include <stddef.h> #include <stdlib.h> +#include <limits.h> t_win *ft_init_win(void) @@ -28,8 +29,10 @@ t_win !(wlist->winptr = malloc(1))) return (NULL); wlist->inited = 0; - wlist->x_size = -1; - wlist->y_size = -1; + wlist->x_size = 0; + wlist->y_size = 0; + wlist->x_max_size = 0; + wlist->y_max_size = 0; return (wlist); } |