1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Removed the create functions in the ColorShifter classes.

This commit is contained in:
toneyisnow
2020-01-27 00:34:59 -08:00
parent a03e696ec0
commit 1319175bdc
2 changed files with 5 additions and 20 deletions

View File

@ -739,8 +739,11 @@ void CPlayerInterface::battleUnitsChanged(const std::vector<UnitChanges> & units
if(unit->alive() && animation->isDead())
animation->setType(CCreatureAnim::HOLDING);
if(unit->isClone())
animation->shiftColor(ColorShifterDeepBlue::create());
if (unit->isClone())
{
std::unique_ptr<ColorShifterDeepBlue> shifter(new ColorShifterDeepBlue());
animation->shiftColor(shifter.get());
}
//TODO: handle more cases
}