From a4ea17831093bc05ad18383ba77b528c9091df65 Mon Sep 17 00:00:00 2001 From: Thad Ward Date: Thu, 25 Mar 2004 13:56:01 +0000 Subject: [PATCH] add comment. --- stepmania/src/ScreenDemonstration.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenDemonstration.cpp b/stepmania/src/ScreenDemonstration.cpp index c4b1b55479..5535688bec 100644 --- a/stepmania/src/ScreenDemonstration.cpp +++ b/stepmania/src/ScreenDemonstration.cpp @@ -93,7 +93,11 @@ void ScreenDemonstration::Input( const DeviceInput& DeviceI, const InputEventTyp { //LOG->Trace( "ScreenDemonstration::Input()" ); - + // note: this code really is only needed because when one of these happens + // AttractInput calls SCREENMAN->SetNewScreen(), and we never get another chance + // to reset the volume in that case, and sounds then "vanish" everywhere. + // (should SetNewScreen() cause a SM_LoseFocus message to be sent to the top screen + // before it gets deleted?) if( MenuI.IsValid() && type == IET_FIRST_PRESS ) { switch( MenuI.button )