mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-19 18:50:52 +00:00
- fixed typo in texture search function. This caused the crosshairs not to be found.
This commit is contained in:
parent
c4768441b4
commit
17c18f3367
2 changed files with 1 additions and 5 deletions
|
@ -193,10 +193,6 @@ void ST_LoadCrosshair(bool alwaysload)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CrosshairImage != NULL)
|
|
||||||
{
|
|
||||||
CrosshairImage->Unload ();
|
|
||||||
}
|
|
||||||
if (num == 0)
|
if (num == 0)
|
||||||
{
|
{
|
||||||
CrosshairNum = 0;
|
CrosshairNum = 0;
|
||||||
|
|
|
@ -172,7 +172,7 @@ FTextureID FTextureManager::CheckForTexture (const char *name, ETextureType uset
|
||||||
if (stricmp (tex->Name, name) == 0 )
|
if (stricmp (tex->Name, name) == 0 )
|
||||||
{
|
{
|
||||||
// If we look for short names, we must ignore any long name texture.
|
// If we look for short names, we must ignore any long name texture.
|
||||||
if ((flags & TEXMAN_ShortNameOnly) && !tex->bFullNameTexture)
|
if ((flags & TEXMAN_ShortNameOnly) && tex->bFullNameTexture)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue