From d1c62bb85885af95bbc0ec9784e169b279d4d16f Mon Sep 17 00:00:00 2001 From: Kamay Xutax Date: Wed, 24 Jul 2024 00:18:37 +0200 Subject: [PATCH] Do not wait for simulation to change to set values --- game/client/c_baseentity.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/game/client/c_baseentity.cpp b/game/client/c_baseentity.cpp index 6d67004e34..dba1a03211 100644 --- a/game/client/c_baseentity.cpp +++ b/game/client/c_baseentity.cpp @@ -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;