mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Style/naming
This commit is contained in:
parent
f43f7b1050
commit
61380fae5c
@ -40,9 +40,9 @@ class Radio : public MxCore {
|
||||
private:
|
||||
void CreateRadioState();
|
||||
|
||||
RadioState* m_state; // 0x08
|
||||
MxBool m_unk0x0c; // 0x0c
|
||||
MxBool m_bgAudioPreviouslyEnabled; // 0x0d
|
||||
RadioState* m_state; // 0x08
|
||||
MxBool m_unk0x0c; // 0x0c
|
||||
MxBool m_audioEnabled; // 0x0d
|
||||
|
||||
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
||||
MxLong HandleClick(LegoControlManagerEvent& p_param);
|
||||
|
||||
@ -78,8 +78,8 @@ void JukeBoxEntity::StartAction()
|
||||
|
||||
action.SetAtomId(*g_jukeboxScript);
|
||||
action.SetObjectId(GameState()->GetUnknown0x41c());
|
||||
m_audioEnabled = BackgroundAudioManager()->GetEnabled();
|
||||
|
||||
m_audioEnabled = BackgroundAudioManager()->GetEnabled();
|
||||
if (!m_audioEnabled) {
|
||||
BackgroundAudioManager()->Enable(TRUE);
|
||||
}
|
||||
|
||||
@ -61,8 +61,8 @@ void Radio::Play()
|
||||
action.SetAtomId(*g_jukeboxScript);
|
||||
action.SetLoopCount(1);
|
||||
|
||||
m_bgAudioPreviouslyEnabled = BackgroundAudioManager()->GetEnabled();
|
||||
if (!m_bgAudioPreviouslyEnabled) {
|
||||
m_audioEnabled = BackgroundAudioManager()->GetEnabled();
|
||||
if (!m_audioEnabled) {
|
||||
BackgroundAudioManager()->Enable(TRUE);
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ void Radio::Stop()
|
||||
}
|
||||
|
||||
BackgroundAudioManager()->Stop();
|
||||
BackgroundAudioManager()->Enable(m_bgAudioPreviouslyEnabled);
|
||||
BackgroundAudioManager()->Enable(m_audioEnabled);
|
||||
m_state->SetActive(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user