mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Match Radio::HandleControl
(#1408)
This commit is contained in:

committed by
GitHub

parent
3d9c7a8956
commit
77435427b3
@@ -141,12 +141,13 @@ void Radio::Stop()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1002cbc0
|
||||
// FUNCTION: BETA10 0x100f1ce1
|
||||
MxLong Radio::HandleControl(LegoControlManagerNotificationParam& p_param)
|
||||
{
|
||||
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()) {
|
||||
Stop();
|
||||
}
|
||||
|
Reference in New Issue
Block a user