mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
fix(parser): Added message when there is no player in map
This commit is contained in:
parent
40e0673425
commit
3d9559088a
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ bool check_cubfile(char *file, t_mapdata *map)
|
|||
"Map is malformed (invalid chars or missing walls)", 51),
|
||||
false);
|
||||
if (!check_bare_minimum(map))
|
||||
return (close(fd), false);
|
||||
return (close(fd), ft_strlcpy(map->error, "No players", 11), false);
|
||||
map->isvalid = true;
|
||||
flood_fill(map, map->startx, map->starty);
|
||||
if (!map->isvalid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue