From a8a327616b3f6bb50fb374d5e1d5c37c1c9f3c67 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Fri, 26 Feb 2010 07:37:35 +0000 Subject: better flag/scene checking for the last intrusion attempt svn-id: r48132 --- engines/teenagent/callbacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/teenagent') diff --git a/engines/teenagent/callbacks.cpp b/engines/teenagent/callbacks.cpp index 1758791150..c56489b24f 100644 --- a/engines/teenagent/callbacks.cpp +++ b/engines/teenagent/callbacks.cpp @@ -4050,7 +4050,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { displayCutsceneMessage(0x580a, 30484); processCallback(ptr); playMusic(6); - if (res->dseg.get_byte(0xdbec) != 1) + if (getFlag(0xdbec) != 1 || ptr != 0x9f3e) //ptr check eq. scene_id == 11 loadScene(id, scene->getPosition()); return true; } -- cgit v1.2.3