mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
- redirected maps need to be defined in order to redirect
This commit is contained in:
parent
b50d7f4db5
commit
4ac76d82d8
2 changed files with 6 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -403,12 +403,14 @@ level_info_t *level_info_t::CheckLevelRedirect ()
|
|||
if (playeringame[i] && (var = GetCVar(i, RedirectCVAR.GetChars())))
|
||||
{
|
||||
if (var->ToInt())
|
||||
return FindLevelInfo(RedirectCVARMapName);
|
||||
if (P_CheckMapData(RedirectCVARMapName))
|
||||
return FindLevelInfo(RedirectCVARMapName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (var->ToInt())
|
||||
return FindLevelInfo(RedirectCVARMapName);
|
||||
if (P_CheckMapData(RedirectCVARMapName))
|
||||
return FindLevelInfo(RedirectCVARMapName);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue