[Scummvm-cvs-logs] SF.net SVN: scummvm:[44006] scummvm/trunk/engines/teenagent
megath at users.sourceforge.net
megath at users.sourceforge.net
Tue Sep 8 00:47:50 CEST 2009
Revision: 44006
http://scummvm.svn.sourceforge.net/scummvm/?rev=44006&view=rev
Author: megath
Date: 2009-09-07 22:47:50 +0000 (Mon, 07 Sep 2009)
Log Message:
-----------
added quit event
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/scene.cpp
scummvm/trunk/engines/teenagent/scene.h
Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp 2009-09-07 20:38:02 UTC (rev 44005)
+++ scummvm/trunk/engines/teenagent/scene.cpp 2009-09-07 22:47:50 UTC (rev 44006)
@@ -460,6 +460,11 @@
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);
Modified: scummvm/trunk/engines/teenagent/scene.h
===================================================================
--- scummvm/trunk/engines/teenagent/scene.h 2009-09-07 20:38:02 UTC (rev 44005)
+++ scummvm/trunk/engines/teenagent/scene.h 2009-09-07 22:47:50 UTC (rev 44006)
@@ -42,7 +42,8 @@
enum Type {
None, Message, Walk, PlayAnimation,
LoadScene, SetOn, SetLan, PlayMusic,
- PlaySound, EnableObject, WaitForAnimation
+ PlaySound, EnableObject, WaitForAnimation,
+ Quit
} type;
Common::String message;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list