mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 21:20:57 +00:00
- ensure that the MAPINFO parser never mixes HexenHack parsing with the new format.
This commit is contained in:
parent
e138a3ffbc
commit
9bd19c2d2e
1 changed files with 12 additions and 4 deletions
|
@ -1508,10 +1508,18 @@ level_info_t *FMapInfoParser::ParseMapHeader(level_info_t &defaultinfo)
|
||||||
|
|
||||||
if (sc.CheckNumber())
|
if (sc.CheckNumber())
|
||||||
{ // MAPNAME is a number; assume a Hexen wad
|
{ // MAPNAME is a number; assume a Hexen wad
|
||||||
char maptemp[8];
|
if (format_type == FMT_New)
|
||||||
mysnprintf (maptemp, countof(maptemp), "MAP%02d", sc.Number);
|
{
|
||||||
mapname = maptemp;
|
mapname = sc.String;
|
||||||
HexenHack = true;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
char maptemp[8];
|
||||||
|
mysnprintf(maptemp, countof(maptemp), "MAP%02d", sc.Number);
|
||||||
|
mapname = maptemp;
|
||||||
|
HexenHack = true;
|
||||||
|
format_type = FMT_Old;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue