diff options
Diffstat (limited to 'engines/sword2/router.cpp')
-rw-r--r-- | engines/sword2/router.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/router.cpp b/engines/sword2/router.cpp index 2fc5c9efd5..d8789d00fb 100644 --- a/engines/sword2/router.cpp +++ b/engines/sword2/router.cpp @@ -945,11 +945,11 @@ void Router::slidyWalkAnimator(WalkData *walkAnim) { // new frames for turn frames 29oct95jps if (turnDir < 0) { - if ( lastDir < 0) + if (lastDir < 0) lastDir += NO_DIRECTIONS; module = _firstStandingTurnLeftFrame + lastDir; } else { - if ( lastDir > 7) + if (lastDir > 7) lastDir -= NO_DIRECTIONS; module = _firstStandingTurnRightFrame + lastDir; } @@ -1208,7 +1208,7 @@ void Router::slidyWalkAnimator(WalkData *walkAnim) { } else if (_targetDir != lastRealDir) { // rotate to target direction turnDir = _targetDir - lastRealDir; - if ( turnDir < 0) + if (turnDir < 0) turnDir += NO_DIRECTIONS; if (turnDir > 4) |