Browse Source

Fix crowbar not showing in weapon list if there are empty weapon slots with lower id.

Same as ffe736252c
hl_urbicide
Andrey Akhmichin 3 years ago
parent
commit
e2da6954c8
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 2
      cl_dll/ammo.cpp

2
cl_dll/ammo.cpp

@ -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…
Cancel
Save