- redirected maps need to be defined in order to redirect

This commit is contained in:
Rachael Alexanderson 2023-02-03 20:21:40 -05:00
commit 4ac76d82d8
2 changed files with 6 additions and 4 deletions

View file

@ -562,8 +562,8 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
auto redirectmap = FindLevelInfo(mapname);
if (redirectmap->RedirectCVAR != NAME_None)
redirectmap = redirectmap->CheckLevelRedirect();
if (redirectmap)
mapname = redirectmap->MapName;
if (redirectmap && redirectmap->MapName.GetChars()[0])
mapname = redirectmap->MapName;
}
G_VerifySkill();