From c6dd144223bdb6d3caad330153234488a6733d3d Mon Sep 17 00:00:00 2001 From: Pioooooo Date: Tue, 17 Dec 2024 07:05:12 +0800 Subject: [PATCH] Fix jump effect opacity --- src/game/client/gameclient.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index cb779f6ea2a..90b79c9e805 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -2153,8 +2153,7 @@ void CGameClient::OnNewSnapshot() vec2(m_Snap.m_aCharacters[i].m_Cur.m_X, m_Snap.m_aCharacters[i].m_Cur.m_Y), Client()->IntraGameTick(g_Config.m_ClDummy)); float Alpha = 1.0f; - bool SameTeam = m_Teams.SameTeam(m_Snap.m_LocalClientId, i); - if(!SameTeam || m_aClients[i].m_Solo || m_aClients[m_Snap.m_LocalClientId].m_Solo) + if(IsOtherTeam(i)) Alpha = g_Config.m_ClShowOthersAlpha / 100.0f; m_Effects.AirJump(Pos, Alpha); }