aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2019-02-19 23:35:10 +0100
committerathrxx2019-03-06 20:48:23 +0100
commit75b01d367a7dcdf74a80cbe59c434fcd7980ef8d (patch)
tree15af883826edb8e31e6f119cddf9fdb484f4f019
parent30ed036f6e42d9f4caa9d0eafe343e72cc318c66 (diff)
downloadscummvm-rg350-75b01d367a7dcdf74a80cbe59c434fcd7980ef8d.tar.gz
scummvm-rg350-75b01d367a7dcdf74a80cbe59c434fcd7980ef8d.tar.bz2
scummvm-rg350-75b01d367a7dcdf74a80cbe59c434fcd7980ef8d.zip
KYRA: (EOB1/Amiga) - fix monster walk orientation
-rw-r--r--engines/kyra/engine/sprites_eob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/engine/sprites_eob.cpp b/engines/kyra/engine/sprites_eob.cpp
index 55e8aaf002..540710e1ac 100644
--- a/engines/kyra/engine/sprites_eob.cpp
+++ b/engines/kyra/engine/sprites_eob.cpp
@@ -833,7 +833,7 @@ int EoBCoreEngine::getNextMonsterDirection(int curBlock, int destBlock) {
int r = 0;
- int s1 = f - d;
+ int s1 = (_flags.platform == Common::kPlatformAmiga) ? (d - f) : (f - d);
int d1 = ABS(s1);
s1 <<= 1;
int s2 = c - e;