From 2709de83fb94ee64af0fdaa633c2eeefc4583e5a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 10 Apr 2017 14:53:59 +0300 Subject: [PATCH] [Client] Use clearer variable names in LocalPlayer::UpdatePosition() --- apps/openmw/mwmp/LocalPlayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 9249c2772..cd9cbd909 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -287,19 +287,19 @@ void LocalPlayer::updatePosition(bool forceUpdate) const MWMechanics::Movement &move = player.getClass().getMovementSettings(player); - static bool posChanged = false; + static bool posWasChanged = false; static bool isJumping = false; static bool sentJumpEnd = true; ESM::Position ptrPos = player.getRefData().getPosition(); - const bool isChangedPos = (move.mPosition[0] != 0 || move.mPosition[1] != 0 || move.mPosition[2] != 0 + const bool posIsChanging = (move.mPosition[0] != 0 || move.mPosition[1] != 0 || move.mPosition[2] != 0 || move.mRotation[0] != 0 || move.mRotation[1] != 0 || move.mRotation[2] != 0); - if (isChangedPos || posChanged || forceUpdate) + if (posIsChanging || posWasChanged || forceUpdate) { - posChanged = isChangedPos; + posWasChanged = posIsChanging; if (!isJumping && !world->isOnGround(player) && !world->isFlying(player)) {