mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
dev: Changed allowed characters to comply more about the current state of the game
This commit is contained in:
parent
f1697a6c73
commit
9988b09e91
1 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue