Relaxed error check for menu textures

Null texture is acceptable as menu patch
Total conversion IWADs like Adventures of Square may use this technique

https://mantis.zdoom.org/view.php?id=320
This commit is contained in:
alexey.lysiuk 2017-02-22 17:39:04 +02:00
parent b45418d363
commit 61de40c678

View file

@ -411,7 +411,7 @@ static void ParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc)
else if (args[i] == TypeTextureID) else if (args[i] == TypeTextureID)
{ {
auto f = TexMan.CheckForTexture(sc.String, FTexture::TEX_MiscPatch); auto f = TexMan.CheckForTexture(sc.String, FTexture::TEX_MiscPatch);
if (!f.isValid()) if (!f.Exists())
{ {
sc.ScriptError("Unknown texture %s", sc.String); sc.ScriptError("Unknown texture %s", sc.String);
} }