diff options
author | Vladimir Menshakov | 2009-11-20 13:08:33 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-20 13:08:33 +0000 |
commit | a70aa90f6285b128bd75d537b504960b767e5468 (patch) | |
tree | 52cdb9b3a07ebe98cfe774769ef711704bad685c | |
parent | d1616ea74e1997756c757d33bf4bdf3a4ae7fc5f (diff) | |
download | scummvm-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
-rw-r--r-- | engines/teenagent/teenagent.cpp | 4 |
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; |