Match Ambulance::StopScriptOnAmbulance and StopScriptOnEntity (#1003)

* Match Ambulance::StopScriptOnAmbulance and StopScriptOnEntity

* Rename for consistency

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach
2024-06-08 17:40:36 -04:00
committed by GitHub
parent 14a2aaadea
commit b7b0b7f50a
3 changed files with 19 additions and 6 deletions

View File

@@ -1201,7 +1201,7 @@ MxBool Isle::Escape()
break;
case 10:
if (CurrentActor() != NULL && !CurrentActor()->IsA("Ambulance")) {
m_ambulance->FUN_10037240();
m_ambulance->StopActions();
m_ambulance->FUN_10037250();
}
break;
@@ -1242,7 +1242,7 @@ void Isle::FUN_10033350()
{
if (m_act1state->m_unk0x018 == 10) {
if (CurrentActor() != NULL && !CurrentActor()->IsA("Ambulance")) {
m_ambulance->FUN_10037240();
m_ambulance->StopActions();
m_ambulance->FUN_10037250();
}
}