Run cond thinks in old order outside of prediction

This commit is contained in:
ficool2
2025-11-04 15:00:30 +00:00
committed by EricS-Valve
parent 1fe7e011bf
commit 4697e576a5
+12
View File
@@ -1420,6 +1420,12 @@ void CTFPlayerShared::OnPreDataChanged( void )
m_nOldDisguiseClass = GetDisguiseClass();
m_nOldDisguiseTeam = GetDisguiseTeam();
m_iOldMovementStunParity = m_iMovementStunParity;
// Local player will run this in PreThink
if ( !prediction->InPrediction() )
{
SharedThink();
}
}
//-----------------------------------------------------------------------------
@@ -1481,6 +1487,12 @@ void CTFPlayerShared::OnDataChanged( void )
{
GetActiveTFWeapon()->SetWeaponVisible( false );
}
// Local player will run this in PreThink
if ( !prediction->InPrediction() )
{
InvisibilityThink();
}
}
//-----------------------------------------------------------------------------