mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 17:51:16 +00:00
fixes
This commit is contained in:
parent
238fd35611
commit
3269469482
@ -30,8 +30,6 @@
|
|||||||
#include "skateboard.h"
|
#include "skateboard.h"
|
||||||
#include "towtrack.h"
|
#include "towtrack.h"
|
||||||
|
|
||||||
#include <vec.h>
|
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Isle, 0x140)
|
DECOMP_SIZE_ASSERT(Isle, 0x140)
|
||||||
|
|
||||||
// GLOBAL: LEGO1 0x100f1198
|
// GLOBAL: LEGO1 0x100f1198
|
||||||
@ -664,14 +662,14 @@ void Isle::Enable(MxBool p_enable)
|
|||||||
Mx3DPointFloat position(CurrentActor()->GetROI()->GetWorldPosition());
|
Mx3DPointFloat position(CurrentActor()->GetROI()->GetWorldPosition());
|
||||||
|
|
||||||
Mx3DPointFloat sub(-21.375f, 0.0f, -41.75f);
|
Mx3DPointFloat sub(-21.375f, 0.0f, -41.75f);
|
||||||
sub.Sub(&position);
|
((Vector3&) sub).Sub(&position);
|
||||||
if (NORMSQRD3(sub) < 1024.0f) {
|
if (sub.LenSquared() < 1024.0f) {
|
||||||
AnimationManager()->FUN_10064740(FALSE);
|
AnimationManager()->FUN_10064740(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Mx3DPointFloat sub2(98.874992f, 0.0f, -46.156292f);
|
Mx3DPointFloat sub2(98.874992f, 0.0f, -46.156292f);
|
||||||
sub2.Sub(&position);
|
((Vector3&) sub2).Sub(&position);
|
||||||
if (NORMSQRD3(sub2) < 1024.0f) {
|
if (sub2.LenSquared() < 1024.0f) {
|
||||||
AnimationManager()->FUN_10064670(FALSE);
|
AnimationManager()->FUN_10064670(FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user