[Client] Get rid Z axis in direction.pos

0.6.1
Koncord 8 years ago
parent d67db1a9bd
commit a847d46984

@ -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…
Cancel
Save