1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2025-03-27 23:20:32 -04:00

Match MxBackgroundAudioManager::FadeInOrFadeOut ()

This commit is contained in:
Christian Semmler 2025-03-16 14:19:11 -07:00 committed by GitHub
parent 67c71cb9e6
commit 401fa7674e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,6 +163,7 @@ void MxBackgroundAudioManager::FUN_1007ef40()
}
// FUNCTION: LEGO1 0x1007f0e0
// FUNCTION: BETA10 0x100e8d8d
void MxBackgroundAudioManager::FadeInOrFadeOut()
{
MxS32 volume, compare;
@ -178,12 +179,10 @@ void MxBackgroundAudioManager::FadeInOrFadeOut()
}
if (volume < compare) {
volume = Min(volume + m_speed, compare);
m_unk0xa0->SetVolume(volume);
m_unk0xa0->SetVolume(volume + m_speed < compare ? volume + m_speed : compare);
}
else if (compare < volume) {
volume = Max(volume - m_speed, compare);
m_unk0xa0->SetVolume(volume);
m_unk0xa0->SetVolume(volume - m_speed > compare ? volume - m_speed : compare);
}
else {
m_unk0xa0->SetVolume(volume);