fix conflicting ScreenMessage IDs by automatically generating unique values

This commit is contained in:
Chris Danford
2005-03-23 08:48:38 +00:00
parent 659def4479
commit 880e42e1d3
46 changed files with 881 additions and 904 deletions
+4 -3
View File
@@ -220,14 +220,15 @@ void ScreenJukebox::Input( const DeviceInput& DeviceI, const InputEventType type
void ScreenJukebox::HandleScreenMessage( const ScreenMessage SM )
{
switch( SM )
if( SM == SM_NotesEnded )
{
case SM_NotesEnded:
if( m_Out.IsTransitioning() || m_Out.IsFinished() )
return; // ignore - we're already fading or faded
m_Out.StartTransitioning( SM_GoToNextScreen );
return;
case SM_GoToNextScreen:
}
else if( SM == SM_GoToNextScreen )
{
if( m_pSoundMusic )
m_pSoundMusic->Stop();
SCREENMAN->SetNewScreen( "ScreenJukebox" );