Skip to content

Commit

Permalink
Removed unecessary is_cardinal_pos() check in find_start(), replaced …
Browse files Browse the repository at this point in the history
…with logicand to check for both values of coordinates having been set
  • Loading branch information
Jean Teissier authored and Jean Teissier committed Aug 27, 2024
1 parent 5ca4d6b commit d3891ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srcs/parser/parser_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: jteissie <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/16 18:12:37 by jteissie #+# #+# */
/* Updated: 2024/08/26 15:47:38 by jteissie ### ########.fr */
/* Updated: 2024/08/27 13:11:50 by jteissie ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -92,7 +92,7 @@ t_parse_status find_start(uint32_t coordinates[], char **map)
y = 0;
x++;
}
if (coordinates[0] == 0 && (!is_cardinal_pos(map[0][0])))
if (coordinates[0] == 0 && coordinates[1] == 0)
return (MAP_ERR);
return (MAP_OK);
}
Expand Down

0 comments on commit d3891ea

Please sign in to comment.