mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
Run cond thinks in old order outside of prediction
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user