From 58c55a3b306aaabded60dad81b0e54714a96dc52 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 20 Aug 2018 14:34:17 +0800 Subject: [PATCH] Don't recreate animation if exists already --- src/items/attachment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/items/attachment.cpp b/src/items/attachment.cpp index d329e9d5f..282cfe6cb 100644 --- a/src/items/attachment.cpp +++ b/src/items/attachment.cpp @@ -345,7 +345,8 @@ void Attachment::hitBanana(ItemState *item_state) if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_BATTLE) { World::getWorld()->kartHit(m_kart->getWorldKartId()); - ExplosionAnimation::create(m_kart); + if (m_kart->getKartAnimation() == NULL) + ExplosionAnimation::create(m_kart); return; }