mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Apply suggestions from code review
This commit is contained in:
parent
5f424e69a4
commit
110e10e38f
@ -18,8 +18,8 @@ DECOMP_SIZE_ASSERT(MxBackgroundAudioManager, 0x150)
|
|||||||
MxBackgroundAudioManager::MxBackgroundAudioManager()
|
MxBackgroundAudioManager::MxBackgroundAudioManager()
|
||||||
{
|
{
|
||||||
NotificationManager()->Register(this);
|
NotificationManager()->Register(this);
|
||||||
m_activePresenter = 0;
|
m_activePresenter = NULL;
|
||||||
m_pendingPresenter = 0;
|
m_pendingPresenter = NULL;
|
||||||
m_tickleState = MxPresenter::e_idle;
|
m_tickleState = MxPresenter::e_idle;
|
||||||
m_speed = 0;
|
m_speed = 0;
|
||||||
m_targetVolume = 0;
|
m_targetVolume = 0;
|
||||||
@ -289,7 +289,7 @@ void MxBackgroundAudioManager::Stop()
|
|||||||
DeleteObject(m_action2);
|
DeleteObject(m_action2);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pendingPresenter = 0;
|
m_pendingPresenter = NULL;
|
||||||
m_action2.SetAtomId(MxAtomId());
|
m_action2.SetAtomId(MxAtomId());
|
||||||
m_action2.SetObjectId(-1);
|
m_action2.SetObjectId(-1);
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ void MxBackgroundAudioManager::Stop()
|
|||||||
DeleteObject(m_action1);
|
DeleteObject(m_action1);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_activePresenter = 0;
|
m_activePresenter = NULL;
|
||||||
m_action1.SetAtomId(MxAtomId());
|
m_action1.SetAtomId(MxAtomId());
|
||||||
m_volumeSuppressionAmount = 0;
|
m_volumeSuppressionAmount = 0;
|
||||||
m_action1.SetObjectId(-1);
|
m_action1.SetObjectId(-1);
|
||||||
@ -367,6 +367,6 @@ MxResult MxBackgroundAudioManager::SetPendingPresenter(
|
|||||||
// FUNCTION: BETA10 0x100e9663
|
// FUNCTION: BETA10 0x100e9663
|
||||||
void MxBackgroundAudioManager::Init()
|
void MxBackgroundAudioManager::Init()
|
||||||
{
|
{
|
||||||
this->m_activePresenter = 0;
|
this->m_activePresenter = NULL;
|
||||||
this->m_tickleState = MxPresenter::e_idle;
|
this->m_tickleState = MxPresenter::e_idle;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user