aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-09-23 08:34:44 +1000
committerPaul Gilbert2011-09-23 08:34:44 +1000
commit9ca3eb6fbecb7ab19e15c3dc2f70241169bec8d1 (patch)
tree735c42563fc131aec268e7effa125ea9058e384d /engines
parentd23e97f2c300a8071c16988d13a3cd149987d3c8 (diff)
downloadscummvm-rg350-9ca3eb6fbecb7ab19e15c3dc2f70241169bec8d1.tar.gz
scummvm-rg350-9ca3eb6fbecb7ab19e15c3dc2f70241169bec8d1.tar.bz2
scummvm-rg350-9ca3eb6fbecb7ab19e15c3dc2f70241169bec8d1.zip
TSAGE: Fix for changing partner's facing direction in Blue Force scene 350
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/core.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index b81b710d8e..49cc2204a9 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -2227,10 +2227,13 @@ void SceneObject::checkAngle(const SceneObject *obj) {
void SceneObject::checkAngle(const Common::Point &pt) {
int angleAmount = GfxManager::getAngle(_position, pt);
- if ((_vm->getGameID() == GType_Ringworld) ||
- ((angleAmount != -1) && (_animateMode == ANIM_MODE_9)))
+ if (angleAmount != -1) {
_angle = angleAmount;
+ if (_animateMode == ANIM_MODE_9)
+ _angle = (angleAmount + 180) % 360;
+ }
+
if (_objectWrapper && (_vm->getGameID() == GType_Ringworld))
_objectWrapper->dispatch();
}