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:
parent
535d3c87fb
commit
130f3f42a9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user