mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
[Client] Use constant instead magic value in Lerp function
This commit is contained in:
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…
x
Reference in New Issue
Block a user