aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-08-15 22:54:32 +0000
committerMax Horn2002-08-15 22:54:32 +0000
commit1a29d159f433689e3f303957d0329b3b5765c1a4 (patch)
tree6aa18fcbdd245034d374f32913228deb13df0afa
parentdca89e3d88d4d3596929a7857153edfb03bc3002 (diff)
downloadscummvm-rg350-1a29d159f433689e3f303957d0329b3b5765c1a4.tar.gz
scummvm-rg350-1a29d159f433689e3f303957d0329b3b5765c1a4.tar.bz2
scummvm-rg350-1a29d159f433689e3f303957d0329b3b5765c1a4.zip
A (partial) fix for #549402
svn-id: r4752
-rw-r--r--actor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/actor.cpp b/actor.cpp
index ee519379cd..5b3fc5ca9f 100644
--- a/actor.cpp
+++ b/actor.cpp
@@ -198,13 +198,16 @@ int Actor::remapDirection(int dir)
flipX = (walkdata.XYFactor > 0);
flipY = (walkdata.YXFactor > 0);
+ // FIXME - this special cases for the class might be necesary for other
+ // games besides Loom CD!
+
// Check for X-Flip
- if ((flags & kBoxXFlip) || isInClass(30)) {
+ if ((flags & kBoxXFlip) || isInClass(_vm->_gameId == GID_LOOM256 ? 19 : 30)) {
dir = 360 - dir;
flipX = !flipX;
}
// Check for Y-Flip
- if ((flags & kBoxYFlip) || isInClass(29)) {
+ if ((flags & kBoxYFlip) || isInClass(_vm->_gameId == GID_LOOM256 ? 18 : 29)) {
dir = 180 - dir;
flipY = !flipY;
}