From bdfb8bb06e62d734b7987779c53877bd529abc93 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 19 Dec 2020 09:27:10 +0100 Subject: [PATCH] Fix dragger being shown (fixes #3414) Still doesn't seem to work with different team and /showothers 1, but maybe that has always been the case --- src/game/server/entities/dragger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/entities/dragger.cpp b/src/game/server/entities/dragger.cpp index f5770b077..484293600 100644 --- a/src/game/server/entities/dragger.cpp +++ b/src/game/server/entities/dragger.cpp @@ -212,7 +212,7 @@ void CDragger::Snap(int SnappingClient) continue; } - if(Char && Char->IsAlive() && Target && Target->IsAlive() && Target->GetPlayer()->GetCID() != Char->GetPlayer()->GetCID() && (Char->GetPlayer()->m_ShowOthers == 0 || (Char->GetPlayer()->m_ShowOthers == 2 && (Char->Teams()->m_Core.GetSolo(SnappingClient) || Char->Teams()->m_Core.GetSolo(Target->GetPlayer()->GetCID()))))) + if(Char && Char->IsAlive() && Target && Target->IsAlive() && Target->GetPlayer()->GetCID() != Char->GetPlayer()->GetCID() && ((Char->GetPlayer()->m_ShowOthers == 0 && (Char->Teams()->m_Core.GetSolo(SnappingClient) || Char->Teams()->m_Core.GetSolo(Target->GetPlayer()->GetCID()))) || (Char->GetPlayer()->m_ShowOthers == 2 && !Target->SameTeam(SnappingClient)))) { continue; }