aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorVladimir Menshakov2009-11-20 13:08:33 +0000
committerVladimir Menshakov2009-11-20 13:08:33 +0000
commita70aa90f6285b128bd75d537b504960b767e5468 (patch)
tree52cdb9b3a07ebe98cfe774769ef711704bad685c /engines
parentd1616ea74e1997756c757d33bf4bdf3a4ae7fc5f (diff)
downloadscummvm-rg350-a70aa90f6285b128bd75d537b504960b767e5468.tar.gz
scummvm-rg350-a70aa90f6285b128bd75d537b504960b767e5468.tar.bz2
scummvm-rg350-a70aa90f6285b128bd75d537b504960b767e5468.zip
do not trigger any events while scene id == -1
svn-id: r46004
Diffstat (limited to 'engines')
-rw-r--r--engines/teenagent/teenagent.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp
index 079aa181dd..9b3b2da18b 100644
--- a/engines/teenagent/teenagent.cpp
+++ b/engines/teenagent/teenagent.cpp
@@ -299,11 +299,15 @@ Common::Error TeenAgentEngine::run() {
}
break;
case Common::EVENT_LBUTTONDOWN:
+ if (scene->getId() < 0)
+ break;
examine(event.mouse, current_object);
break;
case Common::EVENT_RBUTTONDOWN:
//if (current_object)
// debug(0, "%d, %s", current_object->id, current_object->name.c_str());
+ if (scene->getId() < 0)
+ break;
if (res->dseg.get_byte(0) == 3 && current_object->id == 1) {
processCallback(0x5189); //boo!
break;