Implement LegoPathActor::VTable0x88 (#787)

* Implement LegoPathActor::VTable0x88

* Implement FUN_1002ddc0

* Fixes and match

* refac

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Nathan M Gilbert
2024-04-11 07:35:15 -04:00
committed by GitHub
parent 507cd0cff4
commit ada83989b1
13 changed files with 164 additions and 16 deletions

View File

@@ -101,6 +101,7 @@ public:
virtual int Unitize()
{
float sq = LenSquared();
if (sq > 0.0f) {
float root = sqrt(sq);
if (root > 0) {
@@ -108,6 +109,7 @@ public:
return 0;
}
}
return -1;
} // vtable+0x44