style/spacing

This commit is contained in:
Christian Semmler 2024-03-19 11:06:17 -04:00
parent 4ef95a1fbe
commit eac8a13aa4
2 changed files with 5 additions and 1 deletions

View File

@ -75,10 +75,12 @@ void LegoLoadCacheSoundPresenter::DoneTickle()
MxResult LegoLoadCacheSoundPresenter::PutData() MxResult LegoLoadCacheSoundPresenter::PutData()
{ {
m_criticalSection.Enter(); m_criticalSection.Enter();
if (m_currentTickleState == e_done) { if (m_currentTickleState == e_done) {
m_cacheSound = SoundManager()->GetUnknown0x40()->FUN_1003d290(m_cacheSound); m_cacheSound = SoundManager()->GetUnknown0x40()->FUN_1003d290(m_cacheSound);
m_unk0x7c = 1; m_unk0x7c = 1;
} }
m_criticalSection.Leave(); m_criticalSection.Leave();
return SUCCESS; return SUCCESS;
} }

View File

@ -118,7 +118,8 @@ MxResult LegoTexturePresenter::Store()
MxResult LegoTexturePresenter::PutData() MxResult LegoTexturePresenter::PutData()
{ {
MxResult result = SUCCESS; MxResult result = SUCCESS;
if (MxPresenter::IsEnabled() && m_currentChunk) {
if (MxPresenter::IsEnabled() && m_currentChunk != NULL) {
result = Read(*m_currentChunk); result = Read(*m_currentChunk);
if (result == SUCCESS) { if (result == SUCCESS) {
Store(); Store();
@ -129,6 +130,7 @@ MxResult LegoTexturePresenter::PutData()
} }
m_currentChunk = NULL; m_currentChunk = NULL;
} }
return result; return result;
} }