mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 15:19:42 +00:00
[Client] Get rid Z axis in direction.pos
This commit is contained in:
parent
d67db1a9bd
commit
a847d46984
3 changed files with 1 additions and 3 deletions
|
@ -1693,7 +1693,6 @@ void CharacterController::update(float duration)
|
|||
MWMechanics::Movement &movementSettings = cls.getMovementSettings(mPtr);
|
||||
localPlayer->direction.pos[0] = movementSettings.mPosition[0];
|
||||
localPlayer->direction.pos[1] = movementSettings.mPosition[1];
|
||||
localPlayer->direction.pos[2] = movementSettings.mPosition[2];
|
||||
}
|
||||
else if (mwmp::Main::get().getCellController()->isLocalActor(mPtr))
|
||||
{
|
||||
|
|
|
@ -124,7 +124,6 @@ void DedicatedPlayer::move(float dt)
|
|||
MWMechanics::Movement *move = &ptr.getClass().getMovementSettings(ptr);
|
||||
move->mPosition[0] = direction.pos[0];
|
||||
move->mPosition[1] = direction.pos[1];
|
||||
move->mPosition[2] = direction.pos[2];
|
||||
|
||||
MWMechanics::zTurn(ptr, position.rot[2], osg::DegreesToRadians(1.0));
|
||||
}
|
||||
|
|
|
@ -325,7 +325,7 @@ void LocalPlayer::updatePosition(bool forceUpdate)
|
|||
|
||||
position = player.getRefData().getPosition();
|
||||
|
||||
bool posIsChanging = (direction.pos[0] != 0 || direction.pos[1] != 0 || direction.pos[2] != 0 ||
|
||||
bool posIsChanging = (direction.pos[0] != 0 || direction.pos[1] != 0 ||
|
||||
position.rot[0] != oldRot[0] || position.rot[2] != oldRot[1]);
|
||||
|
||||
if (forceUpdate || posIsChanging || posWasChanged)
|
||||
|
|
Loading…
Reference in a new issue