Revert "Only make grenades explode once (fix by timakro)"

This reverts commit b9a93a18fb.
This commit is contained in:
Dennis Felsing 2018-01-24 07:50:15 +01:00
parent dd7281ef86
commit f3256f0b6c

View file

@ -146,7 +146,6 @@ void CProjectile::Tick()
else if (m_Owner >= 0)
{
GameServer()->m_World.DestroyEntity(this);
return;
}
if( ((pTargetChr && (pOwnerChar ? !(pOwnerChar->m_Hit&CCharacter::DISABLE_HIT_GRENADE) : g_Config.m_SvHit || m_Owner == -1 || pTargetChr == pOwnerChar)) || Collide || GameLayerClipped(CurPos)) && !IsWeaponCollide)
@ -178,14 +177,10 @@ void CProjectile::Tick()
{
GameServer()->CreateDamageInd(CurPos, -atan2(m_Direction.x, m_Direction.y), 10, (m_Owner != -1)? TeamMask : -1LL);
GameServer()->m_World.DestroyEntity(this);
return;
}
else
if (!m_Freeze)
{
GameServer()->m_World.DestroyEntity(this);
return;
}
}
if(m_LifeSpan == -1)
{
@ -206,7 +201,6 @@ void CProjectile::Tick()
(m_Owner != -1)? TeamMask : -1LL);
}
GameServer()->m_World.DestroyEntity(this);
return;
}
int x = GameServer()->Collision()->GetIndex(PrevPos, CurPos);