- Allow terrain definitions to work with overrides and non-flats.

SVN r4064 (trunk)
This commit is contained in:
Randy Heit 2013-02-05 02:39:47 +00:00
parent 2f3dd8d959
commit 995d6f52e7

View file

@ -631,7 +631,8 @@ static void ParseFloor (FScanner &sc)
int terrain;
sc.MustGetString ();
picnum = TexMan.CheckForTexture (sc.String, FTexture::TEX_Flat);
picnum = TexMan.CheckForTexture (sc.String, FTexture::TEX_Flat,
FTextureManager::TEXMAN_Overridable|FTextureManager::TEXMAN_TryAny);
if (!picnum.Exists())
{
Printf ("Unknown flat %s\n", sc.String);
@ -650,7 +651,7 @@ static void ParseFloor (FScanner &sc)
//==========================================================================
//
// ParseFloor
// ParseDefault
//
//==========================================================================