mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed map name setup
This was broken when localization for Hexen was added.
This commit is contained in:
parent
ef050d700c
commit
8efc3188b9
1 changed files with 12 additions and 9 deletions
|
@ -1925,10 +1925,12 @@ level_info_t *FMapInfoParser::ParseMapHeader(level_info_t &defaultinfo)
|
||||||
levelinfo->flags |= LEVEL_LOOKUPLEVELNAME;
|
levelinfo->flags |= LEVEL_LOOKUPLEVELNAME;
|
||||||
levelinfo->LevelName = sc.String;
|
levelinfo->LevelName = sc.String;
|
||||||
}
|
}
|
||||||
else if (HexenHack)
|
else
|
||||||
{
|
{
|
||||||
levelinfo->LevelName = sc.String;
|
levelinfo->LevelName = sc.String;
|
||||||
|
|
||||||
|
if (HexenHack)
|
||||||
|
{
|
||||||
// Try to localize Hexen's map names.
|
// Try to localize Hexen's map names.
|
||||||
int fileno = Wads.GetLumpFile(sc.LumpNum);
|
int fileno = Wads.GetLumpFile(sc.LumpNum);
|
||||||
auto fn = Wads.GetWadName(fileno);
|
auto fn = Wads.GetWadName(fileno);
|
||||||
|
@ -1943,6 +1945,7 @@ level_info_t *FMapInfoParser::ParseMapHeader(level_info_t &defaultinfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Set up levelnum now so that you can use Teleport_NewMap specials
|
// Set up levelnum now so that you can use Teleport_NewMap specials
|
||||||
// to teleport to maps with standard names without needing a levelnum.
|
// to teleport to maps with standard names without needing a levelnum.
|
||||||
|
|
Loading…
Reference in a new issue