Name state field, getter and setter in Act1State (#1621)

This commit is contained in:
Fabian Neundorf
2025-07-13 21:01:06 +02:00
committed by GitHub
parent 40c1a40d2b
commit 356c64ce0e
17 changed files with 122 additions and 106 deletions

View File

@@ -365,7 +365,7 @@ MxLong Hospital::HandleEndAction(MxEndActionNotificationParam& p_param)
case HospitalState::e_afterAcceptingQuest:
m_hospitalState->m_state = HospitalState::e_beforeEnteringAmbulance;
act1State = (Act1State*) GameState()->GetState("Act1State");
act1State->SetUnknown18(9);
act1State->SetState(Act1State::e_transitionToAmbulance);
case HospitalState::e_exitToFront:
if (m_exited == FALSE) {
m_exited = TRUE;
@@ -419,7 +419,7 @@ MxLong Hospital::HandleButtonDown(LegoControlManagerNotificationParam& p_param)
Act1State* act1State = (Act1State*) GameState()->GetState("Act1State");
assert(act1State);
act1State->m_unk0x018 = 9;
act1State->m_state = Act1State::e_transitionToAmbulance;
m_destLocation = LegoGameState::e_hospitalExited;
DeleteObjects(