aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:11:56 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 16:11:56 +0100
commit7f57c427d26d8b0c63feac5d0e7b8249707913eb (patch)
treec5bcb6957791278a2e66bfa994ba72eff6241811 /src/ft_warp_level.c
parentOk (diff)
download42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.gz
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.bz2
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.xz
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.tar.zst
42-cub3d-7f57c427d26d8b0c63feac5d0e7b8249707913eb.zip
Stack overflow fix
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index 5055445..b6d1c38 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -64,6 +64,7 @@ static int8_t
return (-1);
if (ft_init_map(&cl->mlist) < 0)
return (-1);
+ ft_printf("[r %d] [g %d] [b %d]\n", cl->c_rgb.r, cl->c_rgb.g, cl->c_rgb.b);
i = 0;
while (i < 5)
{
@@ -101,6 +102,7 @@ int8_t
char *tmp_mup;
uint8_t isoldmus;
+ cl->walltexgood = 0;
if (!(next_path = (char *)malloc((ft_strlen(path) + 1) * sizeof(char))))
return (-1);
ft_sprintf(next_path, "%s", path);