don't load multiple copies of "common back" sound

This commit is contained in:
Chris Danford
2004-05-01 23:30:30 +00:00
parent 6590bd2d48
commit 2e174881c5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -99,6 +99,6 @@ void ScreenCaution::MenuBack( PlayerNumber pn )
return;
this->ClearMessageQueue();
m_Back.StartTransitioning( SM_GoToPrevScreen );
SOUND->PlayOnce( THEME->GetPathToS("Common back") );
SCREENMAN->PlayBackSound();
}
+1 -1
View File
@@ -126,7 +126,7 @@ void ScreenCenterImage::Input( const DeviceInput& DeviceI, const InputEventType
case SDLK_ESCAPE:
if(!IsTransitioning())
{
SOUND->PlayOnce( THEME->GetPathToS("Common back") );
SCREENMAN->PlayBackSound();
StartTransitioning( SM_GoToPrevScreen );
}
case SDLK_RETURN:
+1 -1
View File
@@ -1626,7 +1626,7 @@ void ScreenGameplay::Input( const DeviceInput& DeviceI, const InputEventType typ
LOG->Trace("Player %i went back", MenuI.player+1);
m_DancingState = STATE_OUTRO;
SOUND->PlayOnce( THEME->GetPathToS("Common back") );
SCREENMAN->PlayBackSound();
/* Hmm. There are a bunch of subtly different ways we can
* tween out:
* 1. Keep rendering the song, and keep it moving. This might