mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-05 16:15:35 +00:00
game: TODO: fix this yet
This commit is contained in:
parent
7d045df25b
commit
ac983a0d93
@ -351,7 +351,7 @@ void CTFWeaponBuilder::SwitchOwnersWeaponToLast()
|
||||
CBaseCombatWeapon *pWpn = pOwner->Weapon_GetSlot( 2 );
|
||||
|
||||
// Don't store last weapon when we autoswitch off builder
|
||||
CBaseCombatWeapon *pLastWpn = pOwner->GetLastWeapon();
|
||||
//CBaseCombatWeapon *pLastWpn = pOwner->GetLastWeapon();
|
||||
|
||||
if ( pWpn )
|
||||
{
|
||||
@ -362,6 +362,7 @@ void CTFWeaponBuilder::SwitchOwnersWeaponToLast()
|
||||
pOwner->SwitchToNextBestWeapon( NULL );
|
||||
}
|
||||
|
||||
/*
|
||||
if ( pWpn == pLastWpn )
|
||||
{
|
||||
// We had the wrench out before we started building. Go ahead and set out last
|
||||
@ -373,11 +374,12 @@ void CTFWeaponBuilder::SwitchOwnersWeaponToLast()
|
||||
{
|
||||
pOwner->Weapon_SetLast( pLastWpn );
|
||||
}
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
// for all other classes, just switch to last weapon used
|
||||
pOwner->Weapon_Switch( pOwner->GetLastWeapon() );
|
||||
//pOwner->Weapon_Switch( pOwner->GetLastWeapon() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user