mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -04:00
Match Radio::HandleControl
(#1408)
This commit is contained in:
parent
3d9c7a8956
commit
77435427b3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user