aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/lines.cpp
diff options
context:
space:
mode:
authorStrangerke2013-02-19 17:13:06 +0100
committerStrangerke2013-02-19 17:13:06 +0100
commit7db7f8fff089b635e2bad7935f2fb0585e83aeb7 (patch)
tree89fe1bbc0e3b234effa556132a52a8a26fa6b86c /engines/hopkins/lines.cpp
parent471b8af48272ce1d58d4ea7def63d6ce0526a30a (diff)
downloadscummvm-rg350-7db7f8fff089b635e2bad7935f2fb0585e83aeb7.tar.gz
scummvm-rg350-7db7f8fff089b635e2bad7935f2fb0585e83aeb7.tar.bz2
scummvm-rg350-7db7f8fff089b635e2bad7935f2fb0585e83aeb7.zip
HOPKINS: Regroup some IF statements in linesManager
Diffstat (limited to 'engines/hopkins/lines.cpp')
-rw-r--r--engines/hopkins/lines.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 35c3fda7bd..8b92095549 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -1729,9 +1729,7 @@ int LinesManager::PARC_PERS(int fromX, int fromY, int destX, int destY, int a5,
if (v22 == 1) {
if (v100 >= -1000 && v100 <= -510)
newDirection = DIR_UP_RIGHT;
- if (v100 >= -510 && v100 <= 0)
- newDirection = DIR_RIGHT;
- if (v100 >= 0 && v100 <= 510)
+ if (v100 >= -510 && v100 <= 510)
newDirection = DIR_RIGHT;
if (v100 >= 510 && v100 <= 1000)
newDirection = DIR_DOWN_RIGHT;
@@ -1739,9 +1737,7 @@ int LinesManager::PARC_PERS(int fromX, int fromY, int destX, int destY, int a5,
if (v96 == 1) {
if (v102 >= 510 && v102 <= 1000)
newDirection = DIR_DOWN_RIGHT;
- if (v102 >= 0 && v102 <= 510)
- newDirection = DIR_DOWN;
- if (v102 >= -510 && v102 <= 0)
+ if (v102 >= -510 && v102 <= 510)
newDirection = DIR_DOWN;
if (v102 >= -1000 && v102 <= -510)
newDirection = DIR_DOWN_LEFT;
@@ -1749,9 +1745,7 @@ int LinesManager::PARC_PERS(int fromX, int fromY, int destX, int destY, int a5,
if (v22 == -1) {
if (v100 >= 510 && v100 <= 1000)
newDirection = DIR_DOWN_LEFT;
- if (v100 >= 0 && v100 <= 510)
- newDirection = DIR_LEFT;
- if (v100 >= -510 && v100 <= 0)
+ if (v100 >= -510 && v100 <= 510)
newDirection = DIR_LEFT;
if (v100 >= -1000 && v100 <= -510)
newDirection = DIR_UP_LEFT;