mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-26 22:31:10 +00:00
Change data type of conditionset and showconditionset in unlockable_t and extraemblem_t
This commit is contained in:
parent
46711f2315
commit
2fb04b8a93
2 changed files with 12 additions and 12 deletions
|
@ -3127,9 +3127,9 @@ void readextraemblemdata(MYFILE *f, INT32 num)
|
|||
deh_strlcpy(extraemblems[num-1].description, word2,
|
||||
sizeof (extraemblems[num-1].description), va("Extra emblem %d: objective", num));
|
||||
else if (fastcmp(word, "CONDITIONSET"))
|
||||
extraemblems[num-1].conditionset = (UINT8)value;
|
||||
extraemblems[num-1].conditionset = (UINT16)value;
|
||||
else if (fastcmp(word, "SHOWCONDITIONSET"))
|
||||
extraemblems[num-1].showconditionset = (UINT8)value;
|
||||
extraemblems[num-1].showconditionset = (UINT16)value;
|
||||
else
|
||||
{
|
||||
strupr(word2);
|
||||
|
@ -3215,9 +3215,9 @@ void readunlockable(MYFILE *f, INT32 num)
|
|||
if (fastcmp(word, "HEIGHT"))
|
||||
unlockables[num].height = (UINT16)i;
|
||||
else if (fastcmp(word, "CONDITIONSET"))
|
||||
unlockables[num].conditionset = (UINT8)i;
|
||||
unlockables[num].conditionset = (UINT16)i;
|
||||
else if (fastcmp(word, "SHOWCONDITIONSET"))
|
||||
unlockables[num].showconditionset = (UINT8)i;
|
||||
unlockables[num].showconditionset = (UINT16)i;
|
||||
else if (fastcmp(word, "NOCECHO"))
|
||||
unlockables[num].nocecho = (UINT8)(i || word2[0] == 'T' || word2[0] == 'Y');
|
||||
else if (fastcmp(word, "NOCHECKLIST"))
|
||||
|
|
|
@ -101,8 +101,8 @@ typedef struct
|
|||
{
|
||||
char name[20]; ///< Name of the goal (used in the "emblem awarded" cecho)
|
||||
char description[40]; ///< Description of goal (used in statistics)
|
||||
UINT8 conditionset; ///< Condition set that awards this emblem.
|
||||
UINT8 showconditionset; ///< Condition set that shows this emblem.
|
||||
UINT16 conditionset; ///< Condition set that awards this emblem.
|
||||
UINT16 showconditionset; ///< Condition set that shows this emblem.
|
||||
UINT8 sprite; ///< emblem sprite to use, 0 - 25
|
||||
UINT16 color; ///< skincolor to use
|
||||
} extraemblem_t;
|
||||
|
@ -113,8 +113,8 @@ typedef struct
|
|||
char name[64];
|
||||
char objective[64];
|
||||
UINT16 height; // menu height
|
||||
UINT8 conditionset;
|
||||
UINT8 showconditionset;
|
||||
UINT16 conditionset;
|
||||
UINT16 showconditionset;
|
||||
INT16 type;
|
||||
INT16 variable;
|
||||
char *stringVar;
|
||||
|
|
Loading…
Reference in a new issue