Implement Police::HandleEndAction

This commit is contained in:
Joshua Peisach 2024-02-08 21:18:48 -05:00
parent c17ef9a805
commit 26549dbaa0
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A

View File

@ -100,10 +100,18 @@ MxLong Police::HandleNotification11(MxNotificationParam& p_param)
return 0;
}
// STUB: LEGO1 0x1005e6a0
// FUNCTION: LEGO1 0x1005e6a0
MxLong Police::HandleEndAction(MxEndActionNotificationParam& p_param)
{
// TODO
MxDSAction* action = p_param.GetAction();
MxLong result = m_radio.Notify(p_param);
if (result == 0 && m_atom == action->GetAtomId()) {
if (m_policeState->GetUnknown0x0c() == 1) {
m_policeState->SetUnknown0x0c(0);
return 1;
}
return 0;
}
return 0;
}