skip color hexa when parsing for real this time
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user