mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Use script values from enum for clicked objects (#688)
This commit is contained in:
committed by
GitHub
parent
ba5bc46c0c
commit
e1135d9c1d
@@ -1,5 +1,6 @@
|
||||
#include "radio.h"
|
||||
|
||||
#include "isle_actions.h"
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoomni.h"
|
||||
@@ -97,7 +98,7 @@ MxLong Radio::HandleClick(LegoControlManagerEvent& p_param)
|
||||
MxDSAction action; // Unused
|
||||
MxS32 objectId = p_param.GetClickedObjectId();
|
||||
|
||||
if (objectId == 18) {
|
||||
if (objectId == IsleScript::c_Radio_Ctl) {
|
||||
if (m_state->IsActive()) {
|
||||
Stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user