mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
Merge 92c86cdfb4
into 0565403b15
This commit is contained in:
commit
edd089fe00
1 changed files with 4 additions and 2 deletions
|
@ -3426,8 +3426,10 @@ void CBaseObject::RotateBuildAngles( void )
|
|||
void CBaseObject::UpdateDisabledState( void )
|
||||
{
|
||||
const bool bShouldBeEnabled = !m_bHasSapper
|
||||
&& !m_bPlasmaDisable
|
||||
&& (!TFGameRules()->RoundHasBeenWon() || TFGameRules()->GetWinningTeam() == GetTeamNumber());
|
||||
&& !m_bPlasmaDisable
|
||||
&& ( GetType() != OBJ_SENTRYGUN
|
||||
|| !TFGameRules()->RoundHasBeenWon()
|
||||
|| TFGameRules()->GetWinningTeam() == GetTeamNumber() );
|
||||
|
||||
SetDisabled( !bShouldBeEnabled );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue