feat: Made payable doors

This commit is contained in:
Theo Champion 2025-10-01 14:13:08 +02:00
parent 13b1f7a88c
commit 351e4bb679
7 changed files with 67 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:18:13 by kcolin #+# #+# */
/* Updated: 2025/09/30 17:23:06 by tchampio ### ########.fr */
/* Updated: 2025/10/01 14:08:45 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,10 +24,11 @@
* z - beware of zombies
* d - closed door
* i - open dooro
* P - payable door
*/
bool has_forbidden_characters(char *line)
{
static const char *allowedchars = " 10234567NSEWMQJDzdi\n";
static const char *allowedchars = " 10234567NSEWMQJDzdiP\n";
size_t strsize;
int i;