Skip to content

Commit

Permalink
Fix jump effect opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Pioooooo committed Dec 16, 2024
1 parent 9797da8 commit c6dd144
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/client/gameclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c6dd144

Please sign in to comment.