Do not wait for simulation to change to set values

This commit is contained in:
Kamay Xutax 2024-07-24 00:18:37 +02:00
parent 200b4ff897
commit d1c62bb858

View file

@ -2495,10 +2495,7 @@ 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;
// Detect simulation changes