From 6bc25e56c20b3a2b2da8a1ce4822fc9c018a531d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Nov 2004 04:42:10 +0000 Subject: [PATCH] disable "wait for sounds to stop before quitting" --- stepmania/src/ScreenExit.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenExit.cpp b/stepmania/src/ScreenExit.cpp index 26ec40c035..d95a6147ba 100644 --- a/stepmania/src/ScreenExit.cpp +++ b/stepmania/src/ScreenExit.cpp @@ -7,18 +7,25 @@ #include "RageLog.h" #include "StepMania.h" +/* This screen used to wait for sounds to stop. However, implementing GetPlayingSounds() + * is annoying, because sounds might be deleted at any time; they aren't ours to have + * references to. Also, it's better to quit on command instead of waiting several seconds + * for a sound to stop. */ ScreenExit::ScreenExit( CString sName ): Screen( sName ) { m_Exited = false; + ExitGame(); + /* It'd be better for any previous screen playing music to fade it out as it fades * out the screen. XXX: Check to see if it's fading out; if it'll stop playing in * reasonable time, let it. */ - SOUND->StopMusic(); +// SOUND->StopMusic(); } void ScreenExit::Update( float fDelta ) { +#if 0 if( m_Exited ) return; @@ -48,6 +55,7 @@ void ScreenExit::Update( float fDelta ) LOG->Trace("ScreenExit: shutting down"); ExitGame(); } +#endif } /*