Fix: no longer launch window in case of parse error, catch error on multiple player in map
This commit is contained in:
parent
b26a84b9bb
commit
4d2b8cb60b
7 changed files with 70 additions and 21 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/11/28 13:53:54 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/12/20 14:47:00 by bgoulard ### ########.fr */
|
||||
/* Updated: 2024/12/20 15:42:21 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -138,6 +138,7 @@ typedef enum e_error
|
|||
ERROR_PARSE_NO_BG_COLOR,
|
||||
ERROR_PARSE_ALREADY_SET,
|
||||
ERROR_PARSE_META_IN_MAP,
|
||||
ERROR_PARSE_MULTIPLE_PLAYER,
|
||||
ERROR_CLI,
|
||||
ERROR_MLX,
|
||||
ERROR_TEXTURE_FORMAT,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/16 06:09:01 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/12/16 15:34:31 by bgoulard ### ########.fr */
|
||||
/* Updated: 2024/12/20 15:57:10 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -30,4 +30,6 @@ bool ft_inrange_ex(int value, int min, int max);
|
|||
/// @return true if the value is in the range, false otherwise
|
||||
bool ft_inrange(int value, int min, int max);
|
||||
|
||||
void *ft_strchrs(const char *str, const char *chrs);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue