do nothing if no property

This commit is contained in:
Glenn Maynard
2007-01-16 02:16:48 +00:00
parent 55747b94c7
commit 45cea37eb1
+3
View File
@@ -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 );