mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
- fixed issues with MAPINFO parser.
These cause problems with map progression, particularly with Exhumed.
This commit is contained in:
parent
bdfe40af7c
commit
d14d539144
1 changed files with 3 additions and 3 deletions
|
@ -586,14 +586,14 @@ DEFINE_MAP_OPTION(ex_ramses_pup, false)
|
|||
{
|
||||
parse.ParseAssign();
|
||||
parse.sc.MustGetString();
|
||||
info->ex_ramses_pup = parse.sc.Number;
|
||||
info->ex_ramses_pup = parse.sc.String;
|
||||
}
|
||||
|
||||
DEFINE_MAP_OPTION(ex_ramses_text, false)
|
||||
{
|
||||
parse.ParseAssign();
|
||||
parse.sc.MustGetString();
|
||||
info->ex_ramses_text = parse.sc.Number;
|
||||
info->ex_ramses_text = parse.sc.String;
|
||||
}
|
||||
|
||||
int ex_ramses_horiz = 11;
|
||||
|
@ -925,7 +925,7 @@ MapRecord *FMapInfoParser::ParseMapHeader(MapRecord &defaultinfo)
|
|||
if (map != &sink && map->name.IsEmpty()) sc.ScriptError("Missing level name");
|
||||
sc.UnGet();
|
||||
}
|
||||
if (!map->levelNumber) map->levelNumber = GetDefaultLevelNum(map->labelName);
|
||||
if (map->levelNumber <= 0) map->levelNumber = GetDefaultLevelNum(map->labelName);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue