mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- Changed FTextureManager::CheckForTexture() search algorithm so that inexact matches on
textures of type TEX_MiscPatch will return the first such texture, as it does with all the other types. (It will still prefer to return a texture of a different type. Why are these treated differently, anyway?) SVN r2251 (trunk)
This commit is contained in:
parent
72e9a870c2
commit
70c21c8314
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ FTextureID FTextureManager::CheckForTexture (const char *name, int usetype, BITF
|
|||
else
|
||||
{
|
||||
if (firsttype == FTexture::TEX_Null ||
|
||||
(firsttype == FTexture::TEX_MiscPatch && tex->UseType != FTexture::TEX_Null)
|
||||
(firsttype == FTexture::TEX_MiscPatch &&
|
||||
tex->UseType != firsttype &&
|
||||
tex->UseType != FTexture::TEX_Null)
|
||||
)
|
||||
{
|
||||
firstfound = i;
|
||||
|
|
Loading…
Reference in a new issue