diff options
author | Vladimir Menshakov | 2009-09-07 22:47:50 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-09-07 22:47:50 +0000 |
commit | 278171126f6463b77d842bc7d4c1b3dda0be3f36 (patch) | |
tree | 22ca0ecf601619177e779082e9fc96b54ceee372 /engines | |
parent | 776d5183fd64a8bd831e552c4471d43103f36e99 (diff) | |
download | scummvm-rg350-278171126f6463b77d842bc7d4c1b3dda0be3f36.tar.gz scummvm-rg350-278171126f6463b77d842bc7d4c1b3dda0be3f36.tar.bz2 scummvm-rg350-278171126f6463b77d842bc7d4c1b3dda0be3f36.zip |
added quit event
svn-id: r44006
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/scene.cpp | 5 | ||||
-rw-r--r-- | engines/teenagent/scene.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index a6b7bed2e7..1d61d18d51 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -460,6 +460,11 @@ bool Scene::processEventQueue() { case SceneEvent::WaitForAnimation: debug(0, "waiting for the animation"); break; + + case SceneEvent::Quit: + debug(0, "quit!"); + _engine->quitGame(); + break; default: error("empty/unhandler event[%d]", (int)current_event.type); diff --git a/engines/teenagent/scene.h b/engines/teenagent/scene.h index 6f37a5daa1..a81932c800 100644 --- a/engines/teenagent/scene.h +++ b/engines/teenagent/scene.h @@ -42,7 +42,8 @@ struct SceneEvent { enum Type { None, Message, Walk, PlayAnimation, LoadScene, SetOn, SetLan, PlayMusic, - PlaySound, EnableObject, WaitForAnimation + PlaySound, EnableObject, WaitForAnimation, + Quit } type; Common::String message; |