mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match Ambulance::Tickle (#1021)
This commit is contained in:

committed by
GitHub

parent
ebc200bea3
commit
1f360929cb
@@ -61,9 +61,9 @@ MxResult LegoRace::Create(MxDSAction& p_dsAction)
|
||||
if (result == SUCCESS) {
|
||||
m_act1State = (Act1State*) GameState()->GetState("Act1State");
|
||||
ControlManager()->Register(this);
|
||||
m_pathActor = CurrentActor();
|
||||
m_pathActor = UserActor();
|
||||
m_pathActor->SetWorldSpeed(0);
|
||||
SetCurrentActor(NULL);
|
||||
SetUserActor(NULL);
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -74,7 +74,7 @@ LegoRace::~LegoRace()
|
||||
{
|
||||
g_unk0x100f119c = FALSE;
|
||||
if (m_pathActor) {
|
||||
SetCurrentActor(m_pathActor);
|
||||
SetUserActor(m_pathActor);
|
||||
NavController()->ResetMaxLinearVel(m_pathActor->GetMaxLinearVel());
|
||||
m_pathActor = NULL;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ MxLong LegoRace::Notify(MxParam& p_param)
|
||||
void LegoRace::Enable(MxBool p_enable)
|
||||
{
|
||||
if (GetUnknown0xd0Empty() != p_enable && !p_enable) {
|
||||
Remove(CurrentActor());
|
||||
Remove(UserActor());
|
||||
|
||||
MxU8 oldActorId = GameState()->GetActorId();
|
||||
GameState()->RemoveActor();
|
||||
|
Reference in New Issue
Block a user