- Changed FImageCollection so that it accepts a matching texture of any type.

This is necessary to load hires sprite replacements for certain icons.


SVN r655 (trunk)
This commit is contained in:
Christoph Oelckers 2007-12-28 22:00:41 +00:00
commit 5e56a6512a
4 changed files with 6 additions and 4 deletions

View file

@ -290,13 +290,13 @@ void FTextureManager::ReplaceTexture (int picnum, FTexture *newtexture, bool fre
}
}
int FTextureManager::AddPatch (const char *patchname, int namespc)
int FTextureManager::AddPatch (const char *patchname, int namespc, bool tryany)
{
if (patchname == NULL)
{
return -1;
}
int lumpnum = CheckForTexture (patchname, FTexture::TEX_MiscPatch, false);
int lumpnum = CheckForTexture (patchname, FTexture::TEX_MiscPatch, tryany);
if (lumpnum >= 0)
{