Fix: Don't show draggers of players in solo part

This commit is contained in:
def 2014-06-15 20:51:30 +02:00
parent 180ccb768d
commit 6131dfb7e3
2 changed files with 7 additions and 1 deletions

View file

@ -343,6 +343,12 @@ void CDragger::Snap(int SnappingClient)
continue;
}
if (Char && Char->IsAlive() && Target && Target->GetPlayer()->GetCID() != SnappingClient && !Char->GetPlayer()->m_ShowOthers &&
(Char->Teams()->m_Core.GetSolo(SnappingClient) || Char->Teams()->m_Core.GetSolo(Target->GetPlayer()->GetCID())))
{
continue;
}
CNetObj_Laser *obj;
if (i == -1)

View file

@ -141,7 +141,7 @@ void CProjectile::Tick()
}
if (pOwnerChar && pOwnerChar->IsAlive())
{
TeamMask = pOwnerChar->Teams()->TeamMask(pOwnerChar->Team(), -1, m_Owner);
TeamMask = pOwnerChar->Teams()->TeamMask(pOwnerChar->Team(), -1, m_Owner);
}
else if (m_Owner >= 0)
{