Author: grumbel
Date: 2008-07-01 03:57:59 +0200 (Tue, 01 Jul 2008)
New Revision: 3609
Modified:
trunk/pingus/src/demo_session.cpp
Log:
Exit handling in demo playback
Modified: trunk/pingus/src/demo_session.cpp
===================================================================
--- trunk/pingus/src/demo_session.cpp 2008-07-01 01:43:36 UTC (rev 3608)
+++ trunk/pingus/src/demo_session.cpp 2008-07-01 01:57:59 UTC (rev 3609)
@@ -75,9 +75,15 @@
{
UNUSED_ARG(delta);
+ if (server->is_finished())
+ {
+ ScreenManager::instance()->pop_screen();
+ }
+ else
+ {
// FIXME: Duplicate all timing code here?!
- if (!pause)
+ if (!pause)
{
if (fast_forward)
{
@@ -93,6 +99,7 @@
update_demo();
}
}
+ }
}
void
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs