mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
readcondition: Support stringvar for extended condition instead of always having to not fit one in
This commit is contained in:
parent
98423a2196
commit
42a985d061
1 changed files with 2 additions and 2 deletions
|
|
@ -2336,7 +2336,7 @@ void readunlockable(MYFILE *f, INT32 num)
|
||||||
static void readcondition(UINT8 set, UINT32 id, char *word2)
|
static void readcondition(UINT8 set, UINT32 id, char *word2)
|
||||||
{
|
{
|
||||||
INT32 i;
|
INT32 i;
|
||||||
char *params[4]; // condition, requirement, extra info, extra info
|
char *params[5]; // condition, requirement, extra info, extra info, stringvar
|
||||||
char *spos;
|
char *spos;
|
||||||
char *stringvar = NULL;
|
char *stringvar = NULL;
|
||||||
|
|
||||||
|
|
@ -2348,7 +2348,7 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
|
||||||
|
|
||||||
spos = strtok(word2, " ");
|
spos = strtok(word2, " ");
|
||||||
|
|
||||||
for (i = 0; i < 4; ++i)
|
for (i = 0; i < 5; ++i)
|
||||||
{
|
{
|
||||||
if (spos != NULL)
|
if (spos != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue