[Client] Use constant instead magic value in Lerp function

0.6.1
Koncord 8 years ago
parent a10cf4360c
commit 4015c3e9a9

@ -222,7 +222,8 @@ void DedicatedPlayer::move(float dt)
MWBase::World *world = MWBase::Environment::get().getWorld();
{
osg::Vec3f lerp = Lerp(refPos.asVec3(), position.asVec3(), dt * 15);
static const int timeMultiplier = 15;
osg::Vec3f lerp = Lerp(refPos.asVec3(), position.asVec3(), dt * timeMultiplier);
refPos.pos[0] = lerp.x();
refPos.pos[1] = lerp.y();
refPos.pos[2] = lerp.z();

Loading…
Cancel
Save