aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorVladimir Menshakov2010-02-26 07:37:35 +0000
committerVladimir Menshakov2010-02-26 07:37:35 +0000
commita8a327616b3f6bb50fb374d5e1d5c37c1c9f3c67 (patch)
tree66de8641ba119bad14fc5e416e3be253a10b3736 /engines/teenagent
parenteacf1030e4fce35c9f9e048edfa05dc44d0a3e5d (diff)
downloadscummvm-rg350-a8a327616b3f6bb50fb374d5e1d5c37c1c9f3c67.tar.gz
scummvm-rg350-a8a327616b3f6bb50fb374d5e1d5c37c1c9f3c67.tar.bz2
scummvm-rg350-a8a327616b3f6bb50fb374d5e1d5c37c1c9f3c67.zip
better flag/scene checking for the last intrusion attempt
svn-id: r48132
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/callbacks.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}