From 5da63f9d1c8da9fb029705c089148c1230d94414 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 12 Nov 2003 05:21:51 +0000 Subject: [PATCH] per-player mine sounds --- stepmania/src/Player.cpp | 6 +++--- stepmania/src/Player.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 4224bb0976..b38c7cb717 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -176,7 +176,7 @@ void PlayerMinus::Load( PlayerNumber pn, const NoteData* pNoteData, LifeMeter* p // Need to set Y positions of all these elements in Update since // they change depending on PlayerOptions. - m_soundMineExplosion.Load( THEME->GetPathToS("Player explosion") ); + m_soundMine.Load( THEME->GetPathToS(ssprintf("Player mine p%d",pn+1)) ); } void PlayerMinus::Update( float fDeltaTime ) @@ -562,7 +562,7 @@ void PlayerMinus::Step( int col, RageTimer tm ) // stepped too close to mine? if( fScaledSecondsFromPerfect <= PREFSMAN->m_fJudgeWindowMineSeconds ) { - m_soundMineExplosion.Play(); + m_soundMine.Play(); score = TNS_MISS; m_pNoteField->TapMine( col, score ); @@ -635,7 +635,7 @@ void PlayerMinus::Step( int col, RageTimer tm ) // Unless the computer made a very good step, they were fooled by the mine if( tn == TAP_MINE && score <= TNS_GREAT ) { - m_soundMineExplosion.Play(); + m_soundMine.Play(); score = TNS_MISS; m_pNoteField->TapMine( col, score ); if( m_pLifeMeter ) diff --git a/stepmania/src/Player.h b/stepmania/src/Player.h index ba27ee7110..a08f540c9d 100644 --- a/stepmania/src/Player.h +++ b/stepmania/src/Player.h @@ -92,7 +92,7 @@ protected: int m_iRowLastCrossed; - RageSound m_soundMineExplosion; + RageSound m_soundMine; }; class Player : public PlayerMinus