- add RedirectCVAR directive for loading alternate maps based on a Bool CVAR setting
This commit is contained in:
parent
c8f3aa3fd1
commit
04ea28defc
3 changed files with 43 additions and 0 deletions
|
|
@ -557,6 +557,12 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
// [RH] Mark all levels as not visited
|
||||
for (unsigned int i = 0; i < wadlevelinfos.Size(); i++)
|
||||
wadlevelinfos[i].flags = wadlevelinfos[i].flags & ~LEVEL_VISITED;
|
||||
|
||||
auto redirectmap = FindLevelInfo(mapname);
|
||||
if (redirectmap->RedirectCVAR != NAME_None)
|
||||
redirectmap = redirectmap->CheckLevelRedirect();
|
||||
if (redirectmap)
|
||||
mapname = redirectmap->MapName;
|
||||
}
|
||||
|
||||
UnlatchCVars ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue