mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
readlevelheader: Support lowercase for ZoneTitle
Exposed by increased lowercase prevalence, fix before boarding that up.
This commit is contained in:
parent
86784ae91a
commit
b69a255fe9
1 changed files with 9 additions and 6 deletions
|
|
@ -1025,6 +1025,7 @@ void readlevelheader(MYFILE *f, char * name)
|
||||||
word2 = tmp += 2;
|
word2 = tmp += 2;
|
||||||
i = atoi(word2); // used for numerical settings
|
i = atoi(word2); // used for numerical settings
|
||||||
|
|
||||||
|
// The following support mixed/lower case.
|
||||||
|
|
||||||
if (fastcmp(word, "LEVELNAME"))
|
if (fastcmp(word, "LEVELNAME"))
|
||||||
{
|
{
|
||||||
|
|
@ -1032,7 +1033,14 @@ void readlevelheader(MYFILE *f, char * name)
|
||||||
sizeof(mapheaderinfo[num]->lvlttl), va("Level header %d: levelname", num));
|
sizeof(mapheaderinfo[num]->lvlttl), va("Level header %d: levelname", num));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// CHEAP HACK: move this over here for lowercase subtitles
|
|
||||||
|
if (fastcmp(word, "ZONETITLE"))
|
||||||
|
{
|
||||||
|
deh_strlcpy(mapheaderinfo[num]->zonttl, word2,
|
||||||
|
sizeof(mapheaderinfo[num]->zonttl), va("Level header %d: zonetitle", num));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (fastcmp(word, "SUBTITLE"))
|
if (fastcmp(word, "SUBTITLE"))
|
||||||
{
|
{
|
||||||
deh_strlcpy(mapheaderinfo[num]->subttl, word2,
|
deh_strlcpy(mapheaderinfo[num]->subttl, word2,
|
||||||
|
|
@ -1127,11 +1135,6 @@ void readlevelheader(MYFILE *f, char * name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strings that can be truncated
|
// Strings that can be truncated
|
||||||
else if (fastcmp(word, "ZONETITLE"))
|
|
||||||
{
|
|
||||||
deh_strlcpy(mapheaderinfo[num]->zonttl, word2,
|
|
||||||
sizeof(mapheaderinfo[num]->zonttl), va("Level header %d: zonetitle", num));
|
|
||||||
}
|
|
||||||
else if (fastcmp(word, "RELEVANTSKIN"))
|
else if (fastcmp(word, "RELEVANTSKIN"))
|
||||||
{
|
{
|
||||||
deh_strlcpy(mapheaderinfo[num]->relevantskin, word2,
|
deh_strlcpy(mapheaderinfo[num]->relevantskin, word2,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue