mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fix crowbar not showing in weapon list if there are empty weapon slots with lower id.
Same as ffe736252c
This commit is contained in:
parent
cf4d2a74dc
commit
e2da6954c8
@ -359,7 +359,7 @@ void CHudAmmo::Think( void )
|
|||||||
{
|
{
|
||||||
WEAPON *p = gWR.GetWeapon( i );
|
WEAPON *p = gWR.GetWeapon( i );
|
||||||
|
|
||||||
if( p )
|
if( p && p->iId )
|
||||||
{
|
{
|
||||||
if( gHUD.m_iWeaponBits & ( 1 << p->iId ) )
|
if( gHUD.m_iWeaponBits & ( 1 << p->iId ) )
|
||||||
gWR.PickupWeapon( p );
|
gWR.PickupWeapon( p );
|
||||||
|
Loading…
Reference in New Issue
Block a user