mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove projectiles when player dies
This commit is contained in:
parent
ec6e091f44
commit
27fbf04b09
|
@ -145,6 +145,11 @@ void CProjectile::Tick()
|
|||
{
|
||||
TeamMask = pOwnerChar->Teams()->TeamMask(pOwnerChar->Team(), -1, m_Owner);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameServer()->m_World.DestroyEntity(this);
|
||||
}
|
||||
|
||||
if( ((pTargetChr && (pOwnerChar ? !(pOwnerChar->m_Hit&CCharacter::DISABLE_HIT_GRENADE) : g_Config.m_SvHit || m_Owner == -1 || pTargetChr == pOwnerChar)) || Collide || GameLayerClipped(CurPos)) && !isWeaponCollide)
|
||||
{
|
||||
if(m_Explosive/*??*/ && (!pTargetChr || (pTargetChr && !m_Freeze)))
|
||||
|
|
Loading…
Reference in a new issue