AGI: motion type check in objectstop was AGI3 only

verified via disassembly
This commit is contained in:
Martin Kiewitz 2016-01-31 01:24:09 +01:00
parent 428df3e6cb
commit 4afda5bbea

View File

@ -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);
}