mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- allow optional terrain definitions
... because any Doom terrain WAD would otherwise spam the logfile with messages when running an error log batch.
This commit is contained in:
parent
4d2a52418f
commit
78ac944242
1 changed files with 8 additions and 2 deletions
|
@ -627,13 +627,19 @@ static void ParseFloor (FScanner &sc)
|
||||||
FTextureID picnum;
|
FTextureID picnum;
|
||||||
int terrain;
|
int terrain;
|
||||||
|
|
||||||
|
bool opt = sc.CheckString("optional");
|
||||||
sc.MustGetString ();
|
sc.MustGetString ();
|
||||||
|
|
||||||
picnum = TexMan.CheckForTexture (sc.String, FTexture::TEX_Flat,
|
picnum = TexMan.CheckForTexture (sc.String, FTexture::TEX_Flat,
|
||||||
FTextureManager::TEXMAN_Overridable|FTextureManager::TEXMAN_TryAny);
|
FTextureManager::TEXMAN_Overridable|FTextureManager::TEXMAN_TryAny);
|
||||||
|
|
||||||
if (!picnum.Exists())
|
if (!picnum.Exists())
|
||||||
{
|
{
|
||||||
Printf ("Unknown flat %s\n", sc.String);
|
sc.MustGetString();
|
||||||
sc.MustGetString ();
|
if (!opt)
|
||||||
|
{
|
||||||
|
Printf("Unknown flat %s\n", sc.String);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sc.MustGetString ();
|
sc.MustGetString ();
|
||||||
|
|
Loading…
Reference in a new issue