From 5484f0bc58b77bf7dd28debf1b7a53bd138ba28c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 19 Feb 2016 10:34:37 +0100 Subject: AGI: Add detection+workaround for endofloop+motion at the same time Detects when end.of.loop + motions are used on the same screen object at the same time, which would have resulted in flag corruption in the original interpreter. We detect this situation now, show a warning and disable the cycler in case cycler was activated first. This solves a new issue in kq1, when grabbing the eagle in room 22, that was previously hidden just like in the original AGI. Fixes bug #7046 --- engines/agi/agi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/agi/agi.h') diff --git a/engines/agi/agi.h b/engines/agi/agi.h index c5db1dfc1d..6540eea0f5 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -926,6 +926,8 @@ private: void checkMotion(ScreenObjEntry *screenObj); public: + void motionActivated(ScreenObjEntry *screenObj); + void cyclerActivated(ScreenObjEntry *screenObj); void checkAllMotions(); void moveObj(ScreenObjEntry *screenObj); void inDestination(ScreenObjEntry *screenObj); -- cgit v1.2.3