textures for models

This commit is contained in:
alexey.lysiuk 2017-11-18 18:22:44 +02:00
parent f0dc619b5b
commit cf9a364f71

View file

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