mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-16 21:12:27 +00:00
Emeraldnum and playcredits can only be set when initialising a new gamedata
This commit is contained in:
parent
9252ea186e
commit
17801d5275
1 changed files with 18 additions and 4 deletions
|
|
@ -4087,14 +4087,28 @@ void readcupheader(MYFILE *f, cupheader_t *cup)
|
|||
}
|
||||
else if (fastcmp(word, "EMERALDNUM"))
|
||||
{
|
||||
if (i >= 0 && i <= 14)
|
||||
cup->emeraldnum = (UINT8)i;
|
||||
if (!mainwads || (refreshdirmenu & REFRESHDIR_GAMEDATA))
|
||||
{
|
||||
if (i >= 0 && i <= 14)
|
||||
cup->emeraldnum = (UINT8)i;
|
||||
else
|
||||
deh_warning("%s Cup: invalid emerald number %d", cup->name, i);
|
||||
}
|
||||
else
|
||||
deh_warning("%s Cup: invalid emerald number %d", cup->name, i);
|
||||
{
|
||||
deh_warning("You must define a custom gamedata to use \"%s\"", word);
|
||||
}
|
||||
}
|
||||
else if (fastcmp(word, "PLAYCREDITS"))
|
||||
{
|
||||
cup->playcredits = (i != 0 || word2[0] == 'T' || word2[0] == 'Y');
|
||||
if (!mainwads || (refreshdirmenu & REFRESHDIR_GAMEDATA))
|
||||
{
|
||||
cup->playcredits = (i != 0 || word2[0] == 'T' || word2[0] == 'Y');
|
||||
}
|
||||
else
|
||||
{
|
||||
deh_warning("You must define a custom gamedata to use \"%s\"", word);
|
||||
}
|
||||
}
|
||||
else
|
||||
deh_warning("%s Cup: unknown word '%s'", cup->name, word);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue