Increase MAXCONDITIONSETS to 256

This commit is contained in:
Lactozilla 2024-05-20 00:49:55 -03:00
parent 47bcad4ab1
commit 46711f2315
3 changed files with 4 additions and 5 deletions

View file

@ -157,8 +157,7 @@ void clear_unlockables(void)
void clear_conditionsets(void) void clear_conditionsets(void)
{ {
UINT8 i; for (unsigned i = 0; i < MAXCONDITIONSETS; ++i)
for (i = 0; i < MAXCONDITIONSETS; ++i)
M_ClearConditionSet(i+1); M_ClearConditionSet(i+1);
} }

View file

@ -108,7 +108,7 @@ void M_CopyGameData(gamedata_t *dest, gamedata_t *src)
} }
} }
void M_AddRawCondition(UINT8 set, UINT8 id, conditiontype_t c, INT32 r, INT16 x1, INT16 x2) void M_AddRawCondition(UINT16 set, UINT8 id, conditiontype_t c, INT32 r, INT16 x1, INT16 x2)
{ {
condition_t *cond; condition_t *cond;
UINT32 num, wnum; UINT32 num, wnum;

View file

@ -137,7 +137,7 @@ typedef struct
// If you have more secrets than these variables allow in your game, // If you have more secrets than these variables allow in your game,
// you seriously need to get a life. // you seriously need to get a life.
#define MAXCONDITIONSETS 128 #define MAXCONDITIONSETS 256
#define MAXEMBLEMS 512 #define MAXEMBLEMS 512
#define MAXEXTRAEMBLEMS 48 #define MAXEXTRAEMBLEMS 48
#define MAXUNLOCKABLES 80 #define MAXUNLOCKABLES 80
@ -233,7 +233,7 @@ gamedata_t *M_NewGameDataStruct(void);
void M_CopyGameData(gamedata_t *dest, gamedata_t *src); void M_CopyGameData(gamedata_t *dest, gamedata_t *src);
// Condition set setup // Condition set setup
void M_AddRawCondition(UINT8 set, UINT8 id, conditiontype_t c, INT32 r, INT16 x1, INT16 x2); void M_AddRawCondition(UINT16 set, UINT8 id, conditiontype_t c, INT32 r, INT16 x1, INT16 x2);
// Clearing secrets // Clearing secrets
void M_ClearConditionSet(UINT8 set); void M_ClearConditionSet(UINT8 set);