Don't warn about UDMF comments or user fields

This commit is contained in:
emily 2021-04-19 12:10:30 +02:00 committed by Christoph Oelckers
parent ba146ed5e5
commit e24ff0ac9c

View file

@ -761,7 +761,7 @@ public:
ReadUserKey(ukey); ReadUserKey(ukey);
loader->MapThingsUserData.Push(ukey); loader->MapThingsUserData.Push(ukey);
} }
else else if (stricmp("comment", key.GetChars()))
{ {
DPrintf(DMSG_WARNING, "Unknown UDMF thing key %s\n", key.GetChars()); DPrintf(DMSG_WARNING, "Unknown UDMF thing key %s\n", key.GetChars());
} }
@ -944,6 +944,8 @@ public:
continue; continue;
default: default:
if (!stricmp("comment", key.GetChars()))
continue;
break; break;
} }
@ -1115,6 +1117,7 @@ public:
break; break;
default: default:
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF linedef key %s\n", key.GetChars()); DPrintf(DMSG_WARNING, "Unknown UDMF linedef key %s\n", key.GetChars());
break; break;
} }
@ -1229,6 +1232,8 @@ public:
continue; continue;
default: default:
if (!stricmp("comment", key.GetChars()))
continue;
break; break;
} }
@ -1430,6 +1435,7 @@ public:
break; break;
default: default:
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF sidedef key %s\n", key.GetChars()); DPrintf(DMSG_WARNING, "Unknown UDMF sidedef key %s\n", key.GetChars());
break; break;
@ -1547,6 +1553,8 @@ public:
continue; continue;
default: default:
if (!stricmp("comment", key.GetChars()))
continue;
break; break;
} }
@ -1935,6 +1943,7 @@ public:
break; break;
default: default:
if (strnicmp("user_", key.GetChars(), 5))
DPrintf(DMSG_WARNING, "Unknown UDMF sector key %s\n", key.GetChars()); DPrintf(DMSG_WARNING, "Unknown UDMF sector key %s\n", key.GetChars());
break; break;
} }