[TF2] Fix MoveableSubPanel showing while dead

This commit is contained in:
Horiuchi 2025-07-09 14:03:51 -04:00 committed by EricS-Valve
parent 52e5aff811
commit 089c9fe1df
1 changed files with 3 additions and 0 deletions

View File

@ -12338,6 +12338,9 @@ bool CTFPlayer::CanPickupBuilding( CBaseObject *pPickupObject )
if ( pPickupObject->GetUpgradeLevel() != pPickupObject->GetHighestUpgradeLevel() )
return false;
if ( !IsAlive() )
return false;
if ( m_Shared.IsCarryingObject() )
return false;