mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #15 from Tobii-/bulletfix
Fix: Bullets don't explode when a player stands in their way
This commit is contained in:
commit
2c08b75751
|
@ -150,7 +150,7 @@ void CProjectile::Tick()
|
|||
|
||||
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)))
|
||||
if(m_Explosive/*??*/ && (!pTargetChr || (pTargetChr && (!m_Freeze || (m_Weapon == WEAPON_SHOTGUN && Collide)))))
|
||||
{
|
||||
GameServer()->CreateExplosion(ColPos, m_Owner, m_Weapon, m_Owner == -1, (!pTargetChr ? -1 : pTargetChr->Team()),
|
||||
(m_Owner != -1)? TeamMask : -1LL);
|
||||
|
|
Loading…
Reference in a new issue