mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 22:22:55 +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
14
src/m_cond.c
14
src/m_cond.c
|
|
@ -1397,7 +1397,19 @@ static char *M_BuildConditionTitle(UINT16 map)
|
|||
|| M_MapLocked(map+1))
|
||||
return Z_StrDup("???");
|
||||
|
||||
title = ref = G_BuildMapTitle(map+1);
|
||||
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);
|
||||
}
|
||||
|
||||
if (!title)
|
||||
I_Error("M_BuildConditionTitle: out of memory");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue