2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 00:27:42 +00:00

Initial CScriptPlatform collision

This commit is contained in:
Jack Andersen
2018-06-23 16:39:53 -10:00
parent 4ddec7e10c
commit 186acae5d8
10 changed files with 38 additions and 17 deletions

View File

@@ -98,17 +98,19 @@ u16 CSfxManager::CSfxWrapper::GetSfxId() const
void CSfxManager::CSfxWrapper::UpdateEmitterSilent()
{
x1c_voiceHandle->setVolume(1.f / 127.f);
if (x1c_voiceHandle)
x1c_voiceHandle->setVolume(1.f / 127.f);
}
void CSfxManager::CSfxWrapper::UpdateEmitter()
{
x1c_voiceHandle->setVolume(x20_vol);
if (x1c_voiceHandle)
x1c_voiceHandle->setVolume(x20_vol);
}
void CSfxManager::CSfxWrapper::SetReverb(float rev)
{
if (IsAuxProcessingEnabled() && UseAcoustics())
if (x1c_voiceHandle && IsAuxProcessingEnabled() && UseAcoustics())
x1c_voiceHandle->setReverbVol(rev);
}