Skip to content

Commit

Permalink
No longer require an additional click in hud_fastswitch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Sep 19, 2018
1 parent 62ef5db commit 34dc7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mp/src/game/client/sdk/hud/sdk_hud_weaponselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,17 +587,17 @@ void CHudWeaponSelection::SelectWeaponSlot( int iSlot )
if ( pPlayer->IsAllowedToSwitchWeapons() == false )
return;

if ( !IsInSelectionMode() )
// open the weapon selection
OpenSelection();

// do a fast switch if set
if ( hud_fastswitch.GetBool() )
{
FastWeaponSwitch( iSlot );
return;
}

if ( !IsInSelectionMode() )
// open the weapon selection
OpenSelection();

C_BaseCombatWeapon *pActiveWeapon = m_ahWeaponSlots[iSlot];
if (!pActiveWeapon)
return;
Expand Down

0 comments on commit 34dc7f2

Please sign in to comment.