mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge branch 'master' of github.com:GreYFoXGTi/DDRace into Cleanup
This commit is contained in:
commit
5bc075afe3
|
@ -105,7 +105,6 @@ void CProjectile::Tick()
|
|||
}
|
||||
if( ((TargetChr && (g_Config.m_SvHit || m_Owner == -1 || TargetChr == OwnerChar)) || Collide) && !isWeaponCollide)//TODO:TEAM
|
||||
{
|
||||
|
||||
if(m_Explosive/*??*/ && (!TargetChr || (TargetChr && !m_Freeze)))
|
||||
{
|
||||
GameServer()->CreateExplosion(ColPos, m_Owner, m_Weapon, m_Owner == -1,
|
||||
|
@ -158,7 +157,7 @@ void CProjectile::Snap(int SnappingClient)
|
|||
if(NetworkClipped(SnappingClient, GetPos(Ct)))
|
||||
return;
|
||||
CCharacter * Char = GameServer()->GetPlayerChar(SnappingClient);
|
||||
if(Char && m_Owner != -1 && Char->CanCollide(m_Owner)) return;
|
||||
if(Char && m_Owner != -1 && !Char->CanCollide(m_Owner)) return;
|
||||
CNetObj_Projectile *pProj = static_cast<CNetObj_Projectile *>(Server()->SnapNewItem(NETOBJTYPE_PROJECTILE, m_Id, sizeof(CNetObj_Projectile)));
|
||||
FillInfo(pProj);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue