mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
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:
parent
b45418d363
commit
61de40c678
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue