From 45cea37eb1552fded97cca7d2a50c6becc2f4c72 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 16 Jan 2007 02:16:48 +0000 Subject: [PATCH] do nothing if no property --- stepmania/src/SoundEffectControl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/SoundEffectControl.cpp b/stepmania/src/SoundEffectControl.cpp index c26c4e01f1..40d21fa6ba 100644 --- a/stepmania/src/SoundEffectControl.cpp +++ b/stepmania/src/SoundEffectControl.cpp @@ -35,6 +35,9 @@ void SoundEffectControl::SetSoundReader( RageSoundReader *pPlayer ) void SoundEffectControl::Update( float fDeltaTime ) { + if( SOUND_PROPERTY == "" ) + return; + float fLevel = INPUTMAPPER->GetLevel( GAME_BUTTON_EFFECT_UP, m_pPlayerState->m_PlayerNumber ); fLevel -= INPUTMAPPER->GetLevel( GAME_BUTTON_EFFECT_DOWN, m_pPlayerState->m_PlayerNumber ); CLAMP( fLevel, -1.0f, +1.0f );