Address review comments

This commit is contained in:
jonschz 2024-07-28 20:01:49 +02:00
parent 0a01e9c03f
commit a3013e7a87
2 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class LegoActor : public LegoEntity {
virtual void VTable0x58(MxFloat p_unk0x70) { m_unk0x70 = p_unk0x70; } // vtable+0x58
// FUNCTION: LEGO1 0x10002cf0
virtual MxFloat GetUnk0x70() { return m_unk0x70; } // vtable+0x5c
virtual MxFloat VTable0x5c() { return m_unk0x70; } // vtable+0x5c
// FUNCTION: LEGO1 0x10002d00
virtual MxU8 GetActorId() { return m_actorId; } // vtable+0x60

View File

@ -36,7 +36,7 @@ LegoCarRaceActor::LegoCarRaceActor()
void LegoCarRaceActor::FUN_10080590(float p_float)
{
MxFloat maxSpeed = m_maxLinearVel;
Mx3DPointFloat destEdgeUnknownVector = Mx3DPointFloat();
Mx3DPointFloat destEdgeUnknownVector;
Mx3DPointFloat worldDirection = Mx3DPointFloat(m_roi->GetWorldDirection());
m_destEdge->FUN_1002ddc0(*m_boundary, destEdgeUnknownVector);
@ -49,7 +49,8 @@ void LegoCarRaceActor::FUN_10080590(float p_float)
LegoPathActor* userActor = UserActor();
if (userActor) {
deltaUnk0x70 = m_unk0x70 - userActor->GetUnk0x70();
// All known implementations of LegoPathActor->VTable0x5c() return LegoPathActor::m_unk0x70
deltaUnk0x70 = m_unk0x70 - userActor->VTable0x5c();
}
else {
deltaUnk0x70 = 0;