mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +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())
|
||||
{ // MAPNAME is a number; assume a Hexen wad
|
||||
char maptemp[8];
|
||||
mysnprintf (maptemp, countof(maptemp), "MAP%02d", sc.Number);
|
||||
mapname = maptemp;
|
||||
HexenHack = true;
|
||||
if (format_type == FMT_New)
|
||||
{
|
||||
mapname = sc.String;
|
||||
}
|
||||
else
|
||||
{
|
||||
char maptemp[8];
|
||||
mysnprintf(maptemp, countof(maptemp), "MAP%02d", sc.Number);
|
||||
mapname = maptemp;
|
||||
HexenHack = true;
|
||||
format_type = FMT_Old;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue