Match Radio::HandleControl (#1408)

This commit is contained in:
Christian Semmler
2025-03-14 13:24:11 -07:00
committed by GitHub
parent 3d9c7a8956
commit 77435427b3

View File

@@ -141,12 +141,13 @@ void Radio::Stop()
} }
// FUNCTION: LEGO1 0x1002cbc0 // FUNCTION: LEGO1 0x1002cbc0
// FUNCTION: BETA10 0x100f1ce1
MxLong Radio::HandleControl(LegoControlManagerNotificationParam& p_param) MxLong Radio::HandleControl(LegoControlManagerNotificationParam& p_param)
{ {
MxDSAction action; // Unused MxDSAction action; // Unused
MxS32 objectId = p_param.m_clickedObjectId;
if (objectId == IsleScript::c_Radio_Ctl) { switch (p_param.m_clickedObjectId) {
case IsleScript::c_Radio_Ctl:
if (m_state->IsActive()) { if (m_state->IsActive()) {
Stop(); Stop();
} }