mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Match
This commit is contained in:
parent
7d49a8471e
commit
1e8585b327
@ -640,6 +640,8 @@ MxU8 Infocenter::HandleClick(LegoControlManagerEvent& p_param)
|
||||
// FUNCTION: LEGO1 0x10070870
|
||||
MxLong Infocenter::HandleNotification0(MxNotificationParam& p_param)
|
||||
{
|
||||
MxLong result;
|
||||
|
||||
if (p_param.GetSender() == NULL) {
|
||||
if (m_infocenterState->GetUnknown0x74() == 8) {
|
||||
m_infoManDialogueTimer = 0;
|
||||
@ -647,17 +649,15 @@ MxLong Infocenter::HandleNotification0(MxNotificationParam& p_param)
|
||||
PlayAction(c_exitConfirmationDialogue);
|
||||
}
|
||||
|
||||
return 1;
|
||||
result = 1;
|
||||
}
|
||||
|
||||
if (p_param.GetSender()->IsA("MxEntity") && m_infocenterState->GetUnknown0x74() != 5 &&
|
||||
m_infocenterState->GetUnknown0x74() != 12) {
|
||||
else if (p_param.GetSender()->IsA("MxEntity") && m_infocenterState->GetUnknown0x74() != 5 && m_infocenterState->GetUnknown0x74() != 12) {
|
||||
switch (((MxEntity*) p_param.GetSender())->GetEntityId()) {
|
||||
case 5: {
|
||||
m_infoManDialogueTimer = 0;
|
||||
|
||||
LegoState::StateStruct& state =
|
||||
GameState()->GetUnknown10() ? m_infocenterState->GetUnknown0x14() : m_infocenterState->GetUnknown0x08();
|
||||
LegoState::StateStruct& state = !GameState()->GetUnknown10() ? m_infocenterState->GetUnknown0x08()
|
||||
: m_infocenterState->GetUnknown0x14();
|
||||
|
||||
InfomainScript objectId = (InfomainScript) state.FUN_10014d00();
|
||||
PlayAction(objectId);
|
||||
@ -697,12 +697,13 @@ MxLong Infocenter::HandleNotification0(MxNotificationParam& p_param)
|
||||
m_currentInfomainScript == c_pizzaCtlDescription || m_currentInfomainScript == c_gasCtlDescription ||
|
||||
m_currentInfomainScript == c_medCtlDescription || m_currentInfomainScript == c_copCtlDescription) {
|
||||
StopCurrentAction();
|
||||
return 1;
|
||||
result = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
result = 1;
|
||||
return result;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10070aa0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user