Skip to content

Commit

Permalink
Less redundant conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Mar 25, 2018
1 parent c6b3f3d commit 2843e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/openmw/mwinput/inputmanagerimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ namespace MWInput
triedToMove = true;
mPlayer->setLeftRight (-1);
}
else if (actionIsActive(A_MoveRight) && !actionIsActive(A_MoveLeft))
else if (actionIsActive(A_MoveRight))
{
triedToMove = true;
mPlayer->setLeftRight (1);
Expand All @@ -541,7 +541,7 @@ namespace MWInput
mPlayer->setAutoMove (false);
mPlayer->setForwardBackward (1);
}
else if (actionIsActive(A_MoveBackward) && !actionIsActive(A_MoveForward))
else if (actionIsActive(A_MoveBackward))
{
triedToMove = true;
mPlayer->setAutoMove (false);
Expand Down

0 comments on commit 2843e05

Please sign in to comment.