This commit is contained in:
parent
b85480c2cd
commit
c68a946a81
1 changed files with 5 additions and 2 deletions
|
@ -370,8 +370,11 @@ void CProjectile::collidedWith(CThing *_thisThing)
|
||||||
|
|
||||||
player->takeDamage( DAMAGE__HIT_ENEMY );
|
player->takeDamage( DAMAGE__HIT_ENEMY );
|
||||||
|
|
||||||
shutdown();
|
if ( m_lifetimeType != PROJECTILE_INFINITE_LIFE )
|
||||||
delete this;
|
{
|
||||||
|
shutdown();
|
||||||
|
delete this;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue