Skip to content

Commit

Permalink
Merge pull request ddnet#9396 from Pioooooo/fix-jump-effect-opacity
Browse files Browse the repository at this point in the history
Fix jump effect opacity
  • Loading branch information
Robyt3 authored Dec 17, 2024
2 parents 257e634 + c6dd144 commit 3d1c090
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 3d1c090

Please sign in to comment.