This commit is contained in:
Benau 2017-08-03 01:34:35 +08:00
parent a89b2f5df2
commit ac406e1e00

View File

@ -141,7 +141,10 @@ void CheckCannon::changeDebugColor(bool is_active)
void CheckCannon::trigger(unsigned int kart_index)
{
AbstractKart *kart = World::getWorld()->getKart(kart_index);
if(kart->getKartAnimation()) return;
if (kart->getKartAnimation() || kart->isGhostKart())
{
return;
}
// The constructor AbstractKartAnimation resets the skidding to 0. So in
// order to smooth rotate the kart, we need to keep the current visual