Skip to content

Commit

Permalink
Fix cl_spawnweapon_ cvars when set to the last weapon slot
Browse files Browse the repository at this point in the history
 - Fixes #222
  • Loading branch information
squeek502 committed Jun 5, 2016
1 parent b42d0bd commit 9a11e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/ff/ff_player.cpp
Expand Up @@ -1585,7 +1585,7 @@ void CFFPlayer::Spawn( void )
CBaseCombatWeapon *pSpawnWeapon = Weapon_OwnsThisType(weaponSpawn);
if(pSpawnWpn && pSpawnWeapon)
{
if(Weapon_Switch(pSpawnWeapon))
if(pSpawnWeapon == GetActiveWeapon() || Weapon_Switch(pSpawnWeapon))
break;
}

Expand Down

0 comments on commit 9a11e47

Please sign in to comment.