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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user