Rename variable, add BETA10 vtables

This commit is contained in:
jonschz 2024-07-07 07:23:00 +02:00
parent 1f141dbe3a
commit 2a761510e9
2 changed files with 9 additions and 4 deletions

View File

@ -15,6 +15,11 @@ struct EdgeReference {
// VTABLE: LEGO1 0x100d58b8 LegoPathActor // VTABLE: LEGO1 0x100d58b8 LegoPathActor
// VTABLE: LEGO1 0x100d5984 LegoRaceMap // VTABLE: LEGO1 0x100d5984 LegoRaceMap
// VTABLE: LEGO1 0x100d5988 LegoCarRaceActor // VTABLE: LEGO1 0x100d5988 LegoCarRaceActor
// VTABLE: BETA10 0x101be6ec LegoRaceActor
// VTABLE: BETA10 0x101be6f0 LegoAnimActor
// VTABLE: BETA10 0x101be708 LegoPathActor
// VTABLE: BETA10 0x101be7f8 LegoRaceMap
// VTABLE: BETA10 0x101be800 LegoCarRaceActor
// SIZE 0x200 // SIZE 0x200
class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap { class LegoRaceCar : public LegoCarRaceActor, public LegoRaceMap {
public: public:

View File

@ -172,16 +172,16 @@ void LegoRaceCar::FUN_10012ff0(float p_param)
else if (a->GetAnimTreePtr()->GetCamAnim()) { else if (a->GetAnimTreePtr()->GetCamAnim()) {
MxMatrix transformationMatrix; MxMatrix transformationMatrix;
LegoWorld* currentWorld = CurrentWorld(); // called `r` in BETA10 LegoWorld* r = CurrentWorld(); // called `r` in BETA10
assert(currentWorld); assert(r);
transformationMatrix.SetIdentity(); transformationMatrix.SetIdentity();
// Possible bug in the original code: The first argument is not initialized // Possible bug in the original code: The first argument is not initialized
a->GetAnimTreePtr()->GetCamAnim()->FUN_1009f490(deltaTime, transformationMatrix); a->GetAnimTreePtr()->GetCamAnim()->FUN_1009f490(deltaTime, transformationMatrix);
if (currentWorld->GetCamera()) { if (r->GetCamera()) {
currentWorld->GetCamera()->FUN_100123e0(transformationMatrix, 0); r->GetCamera()->FUN_100123e0(transformationMatrix, 0);
} }
m_roi->FUN_100a58f0(transformationMatrix); m_roi->FUN_100a58f0(transformationMatrix);