Fix return type of Infocenter::Tickle

This commit is contained in:
Misha 2024-01-20 09:12:21 -05:00
parent 24c10f5cd9
commit a248c006da
No known key found for this signature in database
GPG Key ID: 8441D12AEF33FED8

View File

@ -457,7 +457,7 @@ MxResult Infocenter::Tickle()
{ {
if (m_worldStarted == FALSE) { if (m_worldStarted == FALSE) {
LegoWorld::Tickle(); LegoWorld::Tickle();
return 0; return SUCCESS;
} }
if (m_infoManDialogueTimer != 0 && (m_infoManDialogueTimer += 100) > 25000) { if (m_infoManDialogueTimer != 0 && (m_infoManDialogueTimer += 100) > 25000) {
@ -474,17 +474,17 @@ MxResult Infocenter::Tickle()
m_unk0x1d6 += 100; m_unk0x1d6 += 100;
if (m_unk0x1d6 > 3400 && m_unk0x1d6 < 3650) { if (m_unk0x1d6 > 3400 && m_unk0x1d6 < 3650) {
ControlManager()->FUN_100293c0(0x10, m_atom, 1); ControlManager()->FUN_100293c0(0x10, m_atom, 1);
return 0; return SUCCESS;
} }
if (m_unk0x1d6 > 3650 && m_unk0x1d6 < 3900) { if (m_unk0x1d6 > 3650 && m_unk0x1d6 < 3900) {
ControlManager()->FUN_100293c0(0x10, m_atom, 0); ControlManager()->FUN_100293c0(0x10, m_atom, 0);
return 0; return SUCCESS;
} }
if (m_unk0x1d6 > 3900 && m_unk0x1d6 < 4150) { if (m_unk0x1d6 > 3900 && m_unk0x1d6 < 4150) {
ControlManager()->FUN_100293c0(0x10, m_atom, 1); ControlManager()->FUN_100293c0(0x10, m_atom, 1);
return 0; return SUCCESS;
} }
if (4400 < m_unk0x1d6) { if (4400 < m_unk0x1d6) {
@ -493,7 +493,7 @@ MxResult Infocenter::Tickle()
} }
} }
return 0; return SUCCESS;
} }
// FUNCTION: LEGO1 0x10070c20 // FUNCTION: LEGO1 0x10070c20