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 );
|
||||
|
||||
shutdown();
|
||||
delete this;
|
||||
if ( m_lifetimeType != PROJECTILE_INFINITE_LIFE )
|
||||
{
|
||||
shutdown();
|
||||
delete this;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue