Skip to content

Commit

Permalink
Don't warn about UDMF comments or user fields
Browse files Browse the repository at this point in the history
  • Loading branch information
emily authored and coelckers committed Apr 19, 2021
1 parent ba146ed commit e24ff0a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/maploader/udmf.cpp
Expand Up @@ -761,7 +761,7 @@ class UDMFParser : public UDMFParserBase
ReadUserKey(ukey);
loader->MapThingsUserData.Push(ukey);
}
else
else if (stricmp("comment", key.GetChars()))
{
DPrintf(DMSG_WARNING, "Unknown UDMF thing key %s\n", key.GetChars());
}
Expand Down Expand Up @@ -944,6 +944,8 @@ class UDMFParser : public UDMFParserBase
continue;

default:
if (!stricmp("comment", key.GetChars()))
continue;
break;
}

Expand Down Expand Up @@ -1115,7 +1117,8 @@ class UDMFParser : public UDMFParserBase
break;

default:
DPrintf(DMSG_WARNING, "Unknown UDMF linedef key %s\n", key.GetChars());
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF linedef key %s\n", key.GetChars());
break;
}

Expand Down Expand Up @@ -1229,6 +1232,8 @@ class UDMFParser : public UDMFParserBase
continue;

default:
if (!stricmp("comment", key.GetChars()))
continue;
break;
}

Expand Down Expand Up @@ -1430,7 +1435,8 @@ class UDMFParser : public UDMFParserBase
break;

default:
DPrintf(DMSG_WARNING, "Unknown UDMF sidedef key %s\n", key.GetChars());
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF sidedef key %s\n", key.GetChars());
break;

}
Expand Down Expand Up @@ -1547,6 +1553,8 @@ class UDMFParser : public UDMFParserBase
continue;

default:
if (!stricmp("comment", key.GetChars()))
continue;
break;
}

Expand Down Expand Up @@ -1935,7 +1943,8 @@ class UDMFParser : public UDMFParserBase
break;

default:
DPrintf(DMSG_WARNING, "Unknown UDMF sector key %s\n", key.GetChars());
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF sector key %s\n", key.GetChars());
break;
}
if ((namespace_bits & (Zd | Zdt)) && !strnicmp("user_", key.GetChars(), 5))
Expand Down

0 comments on commit e24ff0a

Please sign in to comment.