forked from teamnwah/openmw-tes3coop
[Client] Use constant instead magic value in Lerp function
This commit is contained in:
parent
a10cf4360c
commit
4015c3e9a9
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue