- fixed: The 'new format only' flag for MAPINFO options was never checked.

(ZDoom itself doesn't use it yet so it's only relevant for child ports.)



SVN r1964 (trunk)
This commit is contained in:
Christoph Oelckers 2009-11-06 06:56:25 +00:00
commit d8acbf71fa
3 changed files with 10 additions and 0 deletions

View file

@ -1461,6 +1461,10 @@ void FMapInfoParser::ParseMapDefinition(level_info_t &info)
{
if (sc.Compare(((FMapOptInfo *)(*probe))->name))
{
if (!((FMapOptInfo *)(*probe))->old && format_type != FMT_New)
{
sc.ScriptError("MAPINFO option '%s' requires the new MAPINFO format", sc.String);
}
((FMapOptInfo *)(*probe))->handler(*this, &info);
success = true;
break;