Merge remote-tracking branch 'remotes/origin/texman_models'

This commit is contained in:
Christoph Oelckers 2017-11-24 19:14:08 +01:00
commit ed871c3bf8

View file

@ -663,14 +663,8 @@ FTextureID LoadSkin(const char * path, const char * fn)
buffer.Format("%s%s", path, fn);
int texlump = FindGFXFile(buffer);
if (texlump>=0)
{
return TexMan.CheckForTexture(Wads.GetLumpFullName(texlump), FTexture::TEX_Any, FTextureManager::TEXMAN_TryAny);
}
else
{
return FNullTextureID();
}
const char * const texname = texlump < 0 ? fn : Wads.GetLumpFullName(texlump);
return TexMan.CheckForTexture(texname, FTexture::TEX_Any, FTextureManager::TEXMAN_TryAny);
}
//===========================================================================