Removed potential slow function calls

This commit is contained in:
unknown 2024-09-04 00:06:22 +02:00
parent 1a471233bc
commit 8a118ad4d9
2 changed files with 2 additions and 9 deletions

View file

@ -111,7 +111,7 @@ public:
return this;
}
bool IsUsingClientSideAnimation()
inline bool IsUsingClientSideAnimation()
{
return m_bClientSideAnimation;
}

View file

@ -1325,14 +1325,7 @@ void CInput::CreateMove ( int sequence_number, float input_sample_frametime, boo
}
cmd->simulationdata[pEntity->index].sim_time = pEntity->m_flInterpolatedSimulationTime;
auto pAnim = pEntity->GetBaseAnimating();
if ( pAnim && !pAnim->IsUsingClientSideAnimation() )
{
cmd->simulationdata[pEntity->index].anim_time = pEntity->m_flAnimTime;
}
cmd->simulationdata[pEntity->index].anim_time = pEntity->m_flAnimTime;
cmd->simulationdata[pEntity->index].entityexists = true;
}