Do not wait for simulation to change to set values
This commit is contained in:
parent
200b4ff897
commit
d1c62bb858
1 changed files with 2 additions and 5 deletions
|
@ -2495,11 +2495,8 @@ void C_BaseEntity::PostDataUpdate( DataUpdateType_t updateType )
|
|||
bool simTimeChanged = ( m_flSimulationTime != m_flOldSimulationTime ) ? true : false;
|
||||
|
||||
// Store simulation time for lag compensation.
|
||||
if (simTimeChanged)
|
||||
m_flInterpolatedSimulationTime = m_flSimulationTime;
|
||||
|
||||
if (animTimeChanged)
|
||||
m_flInterpolatedAnimTime = m_flAnimTime;
|
||||
m_flInterpolatedSimulationTime = m_flSimulationTime;
|
||||
m_flInterpolatedAnimTime = m_flAnimTime;
|
||||
|
||||
// Detect simulation changes
|
||||
bool simulationChanged = originChanged || anglesChanged || simTimeChanged;
|
||||
|
|
Loading…
Reference in a new issue