-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unecessary is_cardinal_pos() check in find_start(), replaced …
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -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); | ||
} | ||
|