From c9c4c94b4660c0afafccca5a266d618ec878dd35 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 1 Jun 2024 11:56:21 -0400 Subject: [PATCH] Changes --- LEGO1/lego/legoomni/include/lego3dsound.h | 4 ++-- LEGO1/lego/legoomni/src/audio/lego3dsound.cpp | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LEGO1/lego/legoomni/include/lego3dsound.h b/LEGO1/lego/legoomni/include/lego3dsound.h index 49dd0254..14be04ee 100644 --- a/LEGO1/lego/legoomni/include/lego3dsound.h +++ b/LEGO1/lego/legoomni/include/lego3dsound.h @@ -30,8 +30,8 @@ class Lego3DSound { LPDIRECTSOUND3DBUFFER m_ds3dBuffer; // 0x08 LegoROI* m_roi; // 0x0c LegoROI* m_positionROI; // 0x10 - MxBool m_unk0x14; // 0x14 - MxBool m_isCharacter; // 0x15 + MxBool m_enabled; // 0x14 + MxBool m_isActor; // 0x15 LegoActor* m_actor; // 0x18 double m_frequencyFactor; // 0x20 DWORD m_dwFrequency; // 0x28 diff --git a/LEGO1/lego/legoomni/src/audio/lego3dsound.cpp b/LEGO1/lego/legoomni/src/audio/lego3dsound.cpp index dfb29236..bc68915b 100644 --- a/LEGO1/lego/legoomni/src/audio/lego3dsound.cpp +++ b/LEGO1/lego/legoomni/src/audio/lego3dsound.cpp @@ -26,8 +26,8 @@ void Lego3DSound::Init() m_roi = NULL; m_positionROI = NULL; m_actor = NULL; - m_unk0x14 = FALSE; - m_isCharacter = FALSE; + m_enabled = FALSE; + m_isActor = FALSE; m_volume = 79; } @@ -55,7 +55,7 @@ MxResult Lego3DSound::Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char if (CharacterManager()->Exists(p_name)) { m_roi = CharacterManager()->GetROI(p_name, TRUE); - m_unk0x14 = m_isCharacter = TRUE; + m_enabled = m_isActor = TRUE; } else { m_roi = FindROI(p_name); @@ -65,7 +65,7 @@ MxResult Lego3DSound::Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char m_roi = CharacterManager()->FUN_10085210(NULL, p_name, TRUE); if (m_roi != NULL) { - m_unk0x14 = TRUE; + m_enabled = TRUE; } } @@ -73,7 +73,7 @@ MxResult Lego3DSound::Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char return SUCCESS; } - if (m_isCharacter) { + if (m_isActor) { m_positionROI = m_roi->FindChildROI("head", m_roi); } else { @@ -111,8 +111,8 @@ void Lego3DSound::Destroy() m_ds3dBuffer = NULL; } - if (m_unk0x14 && m_roi && CharacterManager()) { - if (m_isCharacter) { + if (m_enabled && m_roi && CharacterManager()) { + if (m_isActor) { CharacterManager()->FUN_10083db0(m_roi); } else {