Removed potential slow function calls
This commit is contained in:
parent
1a471233bc
commit
8a118ad4d9
2 changed files with 2 additions and 9 deletions
|
@ -111,7 +111,7 @@ public:
|
|||
return this;
|
||||
}
|
||||
|
||||
bool IsUsingClientSideAnimation()
|
||||
inline bool IsUsingClientSideAnimation()
|
||||
{
|
||||
return m_bClientSideAnimation;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue