aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_init_map.c2
-rw-r--r--src/ft_select_get.c8
-rw-r--r--src/ft_warp_level.c1
3 files changed, 5 insertions, 6 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index b3bfa46..f2f2d94 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -45,7 +45,7 @@ static int8_t
uint8_t i;
i = 0;
- while (i < 8)
+ while (i < 9)
{
if (!(mlist->sprite_path[i] = (char*)ft_calloc(1, sizeof(char))))
return (-1);
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 88507a3..a2bd257 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -33,11 +33,11 @@ static int8_t
return (-1);
else if (ret == 5 && (clist->mlist.sprite_path[0][0]))
return (-1);
- if (ret == 6 && ((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
- || (clist->f_rgb.b != -1)))
+ if (ret == 6 && (((clist->f_rgb.r != -1) || (clist->f_rgb.g != -1)
+ || (clist->f_rgb.b != -1)) || clist->mlist.fl_tex_path[0]))
return (-1);
- if (ret == 7 && ((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
- || (clist->c_rgb.b != -1)))
+ if (ret == 7 && (((clist->c_rgb.r != -1) || (clist->c_rgb.g != -1)
+ || (clist->c_rgb.b != -1)) || clist->mlist.ce_tex_path[0]))
return (-1);
return (ret);
}
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index b6d1c38..90bd9f7 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -64,7 +64,6 @@ 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)
{