Skip to content

Commit

Permalink
Correctly restore colorable crosshair color after player stopps using…
Browse files Browse the repository at this point in the history
… func_tank
  • Loading branch information
FreeSlave committed Feb 10, 2024
1 parent 0d728c1 commit 2a1622c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cl_dll/ammo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,12 @@ int CHudAmmo::MsgFunc_HideWeapon( const char *pszName, int iSize, void *pbuf )
else
{
if( m_pWeapon )
SetCrosshair( m_pWeapon->hCrosshair, m_pWeapon->rcCrosshair, 255, 255, 255 );
{
const int crosshairColor = gHUD.GetCrosshairColor();
int r, g, b;
UnpackRGB(r, g, b, crosshairColor);
SetCrosshair( m_pWeapon->hCrosshair, m_pWeapon->rcCrosshair, r, g, b );
}
}

return 1;
Expand Down

0 comments on commit 2a1622c

Please sign in to comment.