mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 12:43:33 +00:00
emblem_t: Add var2/stringVar2
This commit is contained in:
parent
1e5fadc901
commit
66d8d8757e
2 changed files with 12 additions and 0 deletions
|
|
@ -143,6 +143,9 @@ void clear_emblems(void)
|
|||
|
||||
Z_Free(emblemlocations[i].stringVar);
|
||||
emblemlocations[i].stringVar = NULL;
|
||||
|
||||
Z_Free(emblemlocations[i].stringVar2);
|
||||
emblemlocations[i].stringVar2 = NULL;
|
||||
}
|
||||
|
||||
memset(&emblemlocations, 0, sizeof(emblemlocations));
|
||||
|
|
@ -2201,6 +2204,13 @@ void reademblemdata(MYFILE *f, INT32 num)
|
|||
|
||||
emblemlocations[num-1].var = get_number(word2);
|
||||
}
|
||||
else if (fastcmp(word, "VAR2"))
|
||||
{
|
||||
Z_Free(emblemlocations[num-1].stringVar2);
|
||||
emblemlocations[num-1].stringVar2 = Z_StrDup(word2);
|
||||
|
||||
emblemlocations[num-1].var2 = get_number(word2);
|
||||
}
|
||||
else if (fastcmp(word, "FLAGS"))
|
||||
emblemlocations[num-1].flags = get_number(word2);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -147,7 +147,9 @@ struct emblem_t
|
|||
UINT16 color; ///< skincolor to use
|
||||
INT32 flags; ///< GE or ME constants
|
||||
INT32 var; ///< If needed, specifies extra information
|
||||
INT32 var2; ///< Ditto
|
||||
char *stringVar; ///< String version
|
||||
char *stringVar2; ///< Ditto
|
||||
};
|
||||
|
||||
// Unlockable information
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue