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

@@ -583,9 +583,10 @@ MxBool CanExit()
GameState()->m_currentArea != LegoGameState::e_polidoor) {
if (UserActor() == NULL || !UserActor()->IsA("TowTrack")) {
if (UserActor() == NULL || !UserActor()->IsA("Ambulance")) {
MxU32 unk0x18 = act1State->GetUnknown18();
MxU32 mission = act1State->GetState();
if (unk0x18 != 10 && unk0x18 != 8 && unk0x18 != 3) {
if (mission != Act1State::e_ambulance && mission != Act1State::e_towtrack &&
mission != Act1State::e_pizza) {
return TRUE;
}
}