From 4afda5bbea086dff5f9e90c6d49f5fa017dd92d2 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 31 Jan 2016 01:24:09 +0100 Subject: AGI: motion type check in objectstop was AGI3 only verified via disassembly --- engines/agi/motion.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engines/agi/motion.cpp b/engines/agi/motion.cpp index 4af8a48518..a7a1b91788 100644 --- a/engines/agi/motion.cpp +++ b/engines/agi/motion.cpp @@ -209,7 +209,14 @@ void AgiEngine::inDestination(ScreenObjEntry *screenObj) { void AgiEngine::motionMoveObjStop(ScreenObjEntry *screenObj) { screenObj->stepSize = screenObj->move_stepSize; - if (screenObj->motionType != kMotionEgo) { + + uint16 agiVersion = getVersion(); + if (agiVersion >= 0x3000) { + // this check was only done for AGI3 + if (screenObj->motionType != kMotionEgo) { + setflag(screenObj->move_flag, true); + } + } else { setflag(screenObj->move_flag, true); } -- cgit v1.2.3