- fixed typo in texture search function. This caused the crosshairs not to be found.

This commit is contained in:
Christoph Oelckers 2018-04-08 19:16:46 +02:00
parent c4768441b4
commit 17c18f3367
2 changed files with 1 additions and 5 deletions

View file

@ -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;

View file

@ -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;
} }