mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Don't show draggers of players in solo part
This commit is contained in:
parent
180ccb768d
commit
6131dfb7e3
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue