- fixed: long texture name lookup did not work with TEXMAN_TryAny.

This commit is contained in:
Christoph Oelckers 2014-05-14 10:27:40 +02:00
parent a375454474
commit 8c052818b7

View file

@ -220,9 +220,9 @@ FTextureID FTextureManager::CheckForTexture (const char *name, int usetype, BITF
{ {
if (firsttype == FTexture::TEX_Null) return FTextureID(0); if (firsttype == FTexture::TEX_Null) return FTextureID(0);
if (firsttype == FTexture::TEX_FirstDefined && !(flags & TEXMAN_ReturnFirst)) return FTextureID(0); if (firsttype == FTexture::TEX_FirstDefined && !(flags & TEXMAN_ReturnFirst)) return FTextureID(0);
}
return FTextureID(firstfound); return FTextureID(firstfound);
} }
}
if (!(flags & TEXMAN_ShortNameOnly)) if (!(flags & TEXMAN_ShortNameOnly))