mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 14:42:53 +00:00
M_BuildConditionTitle: Support menuttl
Example for menuttl "Controls": - For Tutorial levels, show "The Controls Tutorial" - Otherwise, show "CONTROLS" (allcaps)
This commit is contained in:
parent
2cc796a042
commit
71a95b3096
1 changed files with 13 additions and 1 deletions
12
src/m_cond.c
12
src/m_cond.c
|
|
@ -1397,7 +1397,19 @@ static char *M_BuildConditionTitle(UINT16 map)
|
||||||
|| M_MapLocked(map+1))
|
|| M_MapLocked(map+1))
|
||||||
return Z_StrDup("???");
|
return Z_StrDup("???");
|
||||||
|
|
||||||
|
if (mapheaderinfo[map]->menuttl[0])
|
||||||
|
{
|
||||||
|
if (mapheaderinfo[map]->typeoflevel & TOL_TUTORIAL)
|
||||||
|
{
|
||||||
|
// Intentionally not forced uppercase
|
||||||
|
return Z_StrDup(va("the %s Tutorial", mapheaderinfo[map]->menuttl));
|
||||||
|
}
|
||||||
|
title = ref = Z_StrDup(mapheaderinfo[map]->menuttl);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
title = ref = G_BuildMapTitle(map+1);
|
title = ref = G_BuildMapTitle(map+1);
|
||||||
|
}
|
||||||
|
|
||||||
if (!title)
|
if (!title)
|
||||||
I_Error("M_BuildConditionTitle: out of memory");
|
I_Error("M_BuildConditionTitle: out of memory");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue