mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Fix wrong notification type in LegoRace::Notify (#1601)
This commit is contained in:
committed by
GitHub
parent
40ec911811
commit
89fe7fa924
@@ -333,12 +333,10 @@ MxLong CarRace::HandlePathStruct(LegoPathStructNotificationParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10017650
|
||||
MxLong CarRace::HandleClick(LegoEventNotificationParam& p_param)
|
||||
MxLong CarRace::HandleControl(LegoControlManagerNotificationParam& p_param)
|
||||
{
|
||||
LegoControlManagerNotificationParam* param = (LegoControlManagerNotificationParam*) &p_param;
|
||||
|
||||
if (param->m_unk0x28 == 1) {
|
||||
switch (param->m_clickedObjectId) {
|
||||
if (p_param.m_unk0x28 == 1) {
|
||||
switch (p_param.m_clickedObjectId) {
|
||||
case 3:
|
||||
InvokeAction(Extra::e_stop, *g_carraceScript, CarraceScript::c_irtx08ra_PlayWav, NULL);
|
||||
m_act1State->m_unk0x018 = 0;
|
||||
|
||||
@@ -120,12 +120,12 @@ MxLong JetskiRace::HandleEndAction(MxEndActionNotificationParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100165a0
|
||||
MxLong JetskiRace::HandleClick(LegoEventNotificationParam& p_param)
|
||||
MxLong JetskiRace::HandleControl(LegoControlManagerNotificationParam& p_param)
|
||||
{
|
||||
MxLong result = 0;
|
||||
|
||||
if (((LegoControlManagerNotificationParam*) &p_param)->m_unk0x28 == 1) {
|
||||
switch (((LegoControlManagerNotificationParam*) &p_param)->m_clickedObjectId) {
|
||||
if (p_param.m_unk0x28 == 1) {
|
||||
switch (p_param.m_clickedObjectId) {
|
||||
case JetraceScript::c_JetskiArms_Ctl:
|
||||
m_act1State->m_unk0x018 = 0;
|
||||
VariableTable()->SetVariable(g_raceState, "");
|
||||
|
||||
@@ -82,8 +82,8 @@ MxLong LegoRace::Notify(MxParam& p_param)
|
||||
case c_notificationEndAction:
|
||||
result = HandleEndAction((MxEndActionNotificationParam&) p_param);
|
||||
break;
|
||||
case c_notificationClick:
|
||||
result = HandleClick((LegoEventNotificationParam&) p_param);
|
||||
case c_notificationControl:
|
||||
result = HandleControl((LegoControlManagerNotificationParam&) p_param);
|
||||
break;
|
||||
case c_notificationPathStruct:
|
||||
result = HandlePathStruct((LegoPathStructNotificationParam&) p_param);
|
||||
|
||||
Reference in New Issue
Block a user