- Added Jim' Linux fix.

- Added MartinHowe's fix for mugshot display in status bars.


SVN r856 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-26 08:50:54 +00:00
commit 670edb2356
10 changed files with 138 additions and 25 deletions

View file

@ -70,6 +70,30 @@ void FImageCollection::Init (const char **patchNames, int numPatches, int namesp
}
}
// [MH] Mainly for mugshots with skins and SBARINFO
void FImageCollection::Add (const char **patchNames, int numPatches, int namespc)
{
int NewNumImages = NumImages + numPatches;
int *NewImageMap = new int[NewNumImages];
memcpy(NewImageMap, ImageMap, (NumImages * sizeof(int)));
for (int i = 0; i < numPatches; ++i)
{
int picnum = TexMan.AddPatch (patchNames[i], namespc, true);
if (picnum == -1 && namespc != ns_sprites)
{
picnum = TexMan.AddPatch (patchNames[i], ns_sprites);
}
NewImageMap[NumImages + i] = picnum;
}
delete[] ImageMap;
ImageMap = NewImageMap;
NumImages = NewNumImages;
}
void FImageCollection::Uninit ()
{
if (ImageMap != NULL)