mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Fix non-sentry losing-team buildings staying disabled after round end if hit by disabling effect before round end
This commit is contained in:
parent
aea94b32cb
commit
92c86cdfb4
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