skip color hexa when parsing for real this time

This commit is contained in:
hugogogo
2021-07-25 13:59:18 +02:00
parent 9cfb43e7da
commit a429813165
6 changed files with 17 additions and 5 deletions

View File

@@ -21,8 +21,6 @@ int **split_to_map(t_fdf *fdf, char *raw)
while (++i < fdf->map_height)
{
map[i] = ft_calloc(fdf->map_width, sizeof(*map));
if (!map[i])
shut_down(fdf);
j = -1;
while (++j < fdf->map_width)
{
@@ -31,6 +29,7 @@ int **split_to_map(t_fdf *fdf, char *raw)
map[i][j] = ft_atoi(raw);
while (ft_isdigit(*raw) || *raw == '-')
raw++;
raw += is_color(raw);
z_amplitude(fdf, map[i][j]);
}
}