mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Merge 7002f8fb47
This commit is contained in:
parent
740a5a2c31
commit
4024c29caf
@ -542,7 +542,7 @@ int CHudAmmo::MsgFunc_HideWeapon( const char *pszName, int iSize, void *pbuf )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( m_pWeapon )
|
||||
if( m_pWeapon )
|
||||
SetCrosshair( m_pWeapon->hCrosshair, m_pWeapon->rcCrosshair, 255, 255, 255 );
|
||||
}
|
||||
|
||||
@ -574,6 +574,8 @@ int CHudAmmo::MsgFunc_CurWeapon( const char *pszName, int iSize, void *pbuf )
|
||||
if( iId < 1 )
|
||||
{
|
||||
SetCrosshair( 0, nullrc, 0, 0, 0 );
|
||||
// Clear out the weapon so we don't keep drawing the last active weapon's ammo. - Solokiller
|
||||
m_pWeapon = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user