diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-01 20:45:50 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-01 20:45:50 +0100 |
commit | 2cfddcc1f58e3653142e25a4d9a80177044a8c53 (patch) | |
tree | 78192165565be253b039060b476797a20c35ef96 /src/ft_init_lists.c | |
parent | Better h (diff) | |
download | 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.gz 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.bz2 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.xz 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.zst 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.zip |
in progress
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 1c1089c..65c28d8 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -44,7 +44,6 @@ static t_player plist->dir_x = -1; plist->dir_y = 0; plist->plane_x = 0; - /* plist->plane_y = 0.66666666; */ plist->plane_y = 0.75; return (plist); } @@ -56,8 +55,7 @@ static t_win if (!(wlist = (t_win*)malloc(sizeof(t_win)))) return (NULL); - if (!(wlist->wlx = malloc(1)) || - !(wlist->winptr = malloc(1))) + if (!(wlist->winptr = malloc(1))) return (NULL); wlist->inited = 0; wlist->x_size = 0; |