mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-04 13:19:42 +00:00
[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();
|
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[0] = lerp.x();
|
||||||
refPos.pos[1] = lerp.y();
|
refPos.pos[1] = lerp.y();
|
||||||
refPos.pos[2] = lerp.z();
|
refPos.pos[2] = lerp.z();
|
||||||
|
|
Loading…
Reference in a new issue