mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match IslePathActor::Exit (#997)
* Implement/match IslePathActor::Exit * Name * Name * Partially fix vector interface * Revert "Partially fix vector interface" This reverts commit6e7a1e2b08
. * Revert "Revert "Partially fix vector interface"" This reverts commite3860e3c9f
. * Fix * Remove some COMPAT_MODE
This commit is contained in:

committed by
GitHub

parent
9b22642f0c
commit
9a9bccda0e
@@ -717,13 +717,13 @@ void Isle::Enable(MxBool p_enable)
|
||||
Mx3DPointFloat position(CurrentActor()->GetROI()->GetWorldPosition());
|
||||
|
||||
Mx3DPointFloat sub(-21.375f, 0.0f, -41.75f);
|
||||
((Vector3&) sub).Sub(&position);
|
||||
((Vector3&) sub).Sub(position);
|
||||
if (sub.LenSquared() < 1024.0f) {
|
||||
AnimationManager()->FUN_10064740(NULL);
|
||||
}
|
||||
|
||||
Mx3DPointFloat sub2(98.874992f, 0.0f, -46.156292f);
|
||||
((Vector3&) sub2).Sub(&position);
|
||||
((Vector3&) sub2).Sub(position);
|
||||
if (sub2.LenSquared() < 1024.0f) {
|
||||
AnimationManager()->FUN_10064670(NULL);
|
||||
}
|
||||
@@ -1219,7 +1219,7 @@ MxBool Isle::Escape()
|
||||
|
||||
if (CurrentActor()) {
|
||||
if (CurrentActor()->GetActorId() != GameState()->GetActorId()) {
|
||||
((IslePathActor*) CurrentActor())->VTable0xe4();
|
||||
((IslePathActor*) CurrentActor())->Exit();
|
||||
m_skateboard->SetUnknown0x160(FALSE);
|
||||
}
|
||||
}
|
||||
@@ -1265,7 +1265,7 @@ void Isle::FUN_10033350()
|
||||
|
||||
if (CurrentActor()) {
|
||||
if (CurrentActor()->GetActorId() != GameState()->GetActorId()) {
|
||||
((IslePathActor*) CurrentActor())->VTable0xe4();
|
||||
((IslePathActor*) CurrentActor())->Exit();
|
||||
m_skateboard->SetUnknown0x160(FALSE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user