mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
Merge remote-tracking branch 'remotes/origin/texman_models'
This commit is contained in:
commit
ed871c3bf8
1 changed files with 2 additions and 8 deletions
|
@ -663,14 +663,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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue