Don't recreate animation if exists already

This commit is contained in:
Benau 2018-08-20 14:34:17 +08:00
parent 552028e791
commit 58c55a3b30

View File

@ -345,6 +345,7 @@ void Attachment::hitBanana(ItemState *item_state)
if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_BATTLE)
{
World::getWorld()->kartHit(m_kart->getWorldKartId());
if (m_kart->getKartAnimation() == NULL)
ExplosionAnimation::create(m_kart);
return;
}