Move SpriteFrames.Clear() from R_InitSprites to FTextureManager::Init

- Fixed: Blood sprite rotations were overwritten by the Doom sprite
  rotations.
This commit is contained in:
Randy Heit 2014-07-29 20:22:45 -05:00
parent f3d8edb4d8
commit 02e7c56c82
2 changed files with 1 additions and 2 deletions

View file

@ -925,8 +925,6 @@ void R_InitSprites ()
numskins++;
}
SpriteFrames.Clear();
// [RH] Do some preliminary setup
if (skins != NULL) delete [] skins;
skins = new FPlayerSkin[numskins];

View file

@ -964,6 +964,7 @@ void FTextureManager::SortTexturesByType(int start, int end)
void FTextureManager::Init()
{
DeleteAll();
SpriteFrames.Clear();
// Init Build Tile data if it hasn't been done already
if (BuildTileFiles.Size() == 0) CountBuildTiles ();
FTexture::InitGrayMap();