We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43c76b7 + 3d33e4e commit 0ec204bCopy full SHA for 0ec204b
src/game/client/components/hud.cpp
@@ -615,7 +615,7 @@ void CHud::RenderCursor()
615
if(Client()->State() != IClient::STATE_DEMOPLAYBACK && GameClient()->m_Snap.m_pLocalCharacter)
616
{
617
// Render local cursor
618
- CurWeapon = maximum(0, GameClient()->m_Snap.m_pLocalCharacter->m_Weapon % NUM_WEAPONS);
+ CurWeapon = maximum(0, GameClient()->m_aClients[GameClient()->m_Snap.m_LocalClientId].m_Predicted.m_ActiveWeapon);
619
TargetPos = GameClient()->m_Controls.m_aTargetPos[g_Config.m_ClDummy];
620
}
621
else
0 commit comments