Don't explode shielded kart which is near other exploded kart.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14210 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
deveee 2013-10-05 20:20:41 +00:00
parent 535d3c87fb
commit 130f3f42a9

View File

@ -494,6 +494,11 @@ void Flyable::explode(AbstractKart *kart_hit, PhysicalObject *object,
// rockets on short distance.
if( (m_owner!=kart || m_owner==kart_hit) && !kart->getKartAnimation())
{
if(kart->isShielded())
{
kart->decreaseShieldTime();
continue;
}
// The explosion animation will register itself with the kart
// and will free it later.
ExplosionAnimation::create(kart, getXYZ(), kart==kart_hit);