diff options
-rw-r--r-- | map/lvl_one.cub | 2 | ||||
-rw-r--r-- | src/ft_init_lists.c | 2 | ||||
-rw-r--r-- | src/ft_raycasting.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/map/lvl_one.cub b/map/lvl_one.cub index 8e5deac..2c52287 100644 --- a/map/lvl_one.cub +++ b/map/lvl_one.cub @@ -1,4 +1,4 @@ -R 1500 900 +R 1440 1000 NO ./media/img/BRIQUASSE_3.xpm SO ./media/img/BRIQUASSE_3.xpm diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 82f5c0e..bd2ae74 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -76,8 +76,6 @@ static int8_t cl->f_rgb = ft_init_rgb(); cl->c_rgb = ft_init_rgb(); cl->rlist = ft_init_s_ray(); - if (!(cl->rlist.wall_dist_tab = (float*)malloc(1 * sizeof(float)))) - return (-1); cl->currlvl = 0; cl->walltexgood = 0; ft_init_funptr(cl); diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c index 5c57044..221c43d 100644 --- a/src/ft_raycasting.c +++ b/src/ft_raycasting.c @@ -87,7 +87,6 @@ void uint16_t i; t_win *wl; - ft_memdel((void**)&cl->rlist.wall_dist_tab); wl = &cl->wlist; if (!(cl->rlist.wall_dist_tab = (float*)malloc(sizeof(float) * cl->wlist.x_size))) @@ -107,5 +106,6 @@ void } ft_floor_cast(cl); i = 0; + ft_memdel((void**)&cl->rlist.wall_dist_tab); ft_memdel((void**)&cl->rlist.wall_bz); } |