This commit is contained in:
Christian Semmler 2024-02-02 14:35:49 -05:00
parent 0b09bbe1a6
commit d3aef0b10d
2 changed files with 14 additions and 13 deletions

View File

@ -56,16 +56,16 @@ class MxBackgroundAudioManager : public MxCore {
MxResult OpenMusic(MxAtomId& p_script);
void DestroyMusic();
MxBool m_musicEnabled; // 0x08
MxDSAction m_action1; // 0x0c
MxAudioPresenter* m_unk0xa0;
MxDSAction m_action2; // 0xa4
MxAudioPresenter* m_unk0x138;
MxS32 m_unk0x13c;
MxS32 m_unk0x140;
MxS32 m_targetVolume;
MxS16 m_unk0x148;
MxAtomId m_script;
MxBool m_musicEnabled; // 0x08
MxDSAction m_action1; // 0x0c
MxAudioPresenter* m_unk0xa0; // 0xa0
MxDSAction m_action2; // 0xa4
MxAudioPresenter* m_unk0x138; // 0x138
MxS32 m_unk0x13c; // 0x13c
MxS32 m_unk0x140; // 0x140
MxS32 m_targetVolume; // 0x144
MxS16 m_unk0x148; // 0x148
MxAtomId m_script; // 0x14c
};
#endif // MXBACKGROUNDAUDIOMANAGER_H

View File

@ -115,9 +115,10 @@ void MxBackgroundAudioManager::FUN_1007ef40()
if (m_unk0xa0 == NULL) {
if (m_unk0x138) {
compare = 30;
if (m_unk0x148 == 0) {
if (m_unk0x148 != 0) {
compare = 30;
}
else {
compare = m_targetVolume;
}