mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Fixed: The changemap CCMD did not work for maps not defined by MAPINFO.
SVN r4131 (trunk)
This commit is contained in:
parent
62b23901eb
commit
0b9b6dda2e
3 changed files with 7 additions and 9 deletions
|
@ -489,7 +489,7 @@ void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill
|
|||
}
|
||||
else if (strncmp(levelname, "enDSeQ", 6) != 0)
|
||||
{
|
||||
nextinfo = FindLevelInfo (levelname);
|
||||
nextinfo = FindLevelInfo (levelname, false);
|
||||
if (nextinfo != NULL)
|
||||
{
|
||||
level_info_t *nextredir = nextinfo->CheckLevelRedirect();
|
||||
|
@ -655,17 +655,14 @@ void G_DoCompleted (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (strncmp (nextlevel, "enDSeQ", 6) == 0)
|
||||
level_info_t *nextinfo = FindLevelInfo (nextlevel, false);
|
||||
if (nextinfo == NULL || strncmp (nextlevel, "enDSeQ", 6) == 0)
|
||||
{
|
||||
wminfo.next = nextlevel;
|
||||
wminfo.LName1 = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
level_info_t *nextinfo = FindLevelInfo (nextlevel);
|
||||
wminfo.next = nextinfo->mapname;
|
||||
wminfo.LName1 = TexMan[TexMan.CheckForTexture(nextinfo->pname, FTexture::TEX_MiscPatch)];
|
||||
}
|
||||
|
|
|
@ -515,7 +515,7 @@ void G_InitLevelLocals (void);
|
|||
void G_AirControlChanged ();
|
||||
|
||||
cluster_info_t *FindClusterInfo (int cluster);
|
||||
level_info_t *FindLevelInfo (const char *mapname);
|
||||
level_info_t *FindLevelInfo (const char *mapname, bool allowdefault=true);
|
||||
level_info_t *FindLevelByNum (int num);
|
||||
level_info_t *CheckLevelRedirect (level_info_t *info);
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ static int FindWadLevelInfo (const char *name)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
level_info_t *FindLevelInfo (const char *mapname)
|
||||
level_info_t *FindLevelInfo (const char *mapname, bool allowdefault)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -90,7 +90,7 @@ level_info_t *FindLevelInfo (const char *mapname)
|
|||
{
|
||||
return &wadlevelinfos[i];
|
||||
}
|
||||
else
|
||||
else if (allowdefault)
|
||||
{
|
||||
if (TheDefaultLevelInfo.LevelName.IsEmpty())
|
||||
{
|
||||
|
@ -100,6 +100,7 @@ level_info_t *FindLevelInfo (const char *mapname)
|
|||
}
|
||||
return &TheDefaultLevelInfo;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue