aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent')
-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;