Merge pull request #514 from Mignari/master

Fix alpha at color key.
This commit is contained in:
Henrique Santiago 2014-04-04 16:54:37 -03:00
commit b19fb22146
1 changed files with 0 additions and 2 deletions

View File

@ -81,7 +81,6 @@ void SpriteManager::saveSpr(std::string fileName)
else
fin->addU16(m_spritesCount);
bool useAlpha = g_game.getFeature(Otc::GameSpritesAlphaChannel);
uint32 offset = fin->tell();
uint32 spriteAddress = offset + 4 * m_spritesCount;
for(int i = 1; i <= m_spritesCount; i++)
@ -99,7 +98,6 @@ void SpriteManager::saveSpr(std::string fileName)
fin->addU8(m_spritesFile->getU8());
fin->addU8(m_spritesFile->getU8());
fin->addU8(m_spritesFile->getU8());
if (useAlpha) fin->addU8(m_spritesFile->getU8());
uint16 dataSize = m_spritesFile->getU16();
fin->addU16(dataSize);