dev: Changed allowed characters to comply more about the current state of the game

This commit is contained in:
Theo Champion 2025-08-11 13:07:52 +02:00
parent f1697a6c73
commit 9988b09e91

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:18:13 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:47:34 by kcolin ### ########.fr */
/* Updated: 2025/08/11 13:05:44 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,11 +14,19 @@
// TODO: use a #define for allowedchars, to prevent needless repetition
#define BONUS // FIXME: Delete me
#ifdef BONUS
/*
* 10NSEW are from mandatory part
* M - Mystery box
* Q - Quick Revive perk
* J - Juggernog perk
* D - Double tap perk
*/
bool has_forbidden_characters(char *line)
{
static const char *allowedchars = " 10NSEWDdZzsM\n";
static const char *allowedchars = " 10NSEWMQJD\n";
size_t strsize;
int i;