reenable sound in Cancel(), rather than as a special case in the input, so it works if someone else calls Cancel

This commit is contained in:
Glenn Maynard
2008-06-11 22:05:49 +00:00
parent 04f43dae61
commit 3d2321887d
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -87,6 +87,12 @@ void ScreenDemonstration::HandleScreenMessage( const ScreenMessage SM )
ScreenJukebox::HandleScreenMessage( SM );
}
void ScreenDemonstration::Cancel( ScreenMessage smSendWhenDone )
{
ScreenAttract::SetAttractVolume( false ); // unmute attract sounds
ScreenJukebox::Cancel( smSendWhenDone );
}
/*
* (c) 2003-2004 Chris Danford
* All rights reserved.
+1
View File
@@ -11,6 +11,7 @@ class ScreenDemonstration : public ScreenJukebox
public:
ScreenDemonstration();
virtual void Init();
virtual void Cancel( ScreenMessage smSendWhenDone );
virtual void HandleScreenMessage( const ScreenMessage SM );