Address issues raised by linter

This commit is contained in:
jonschz 2024-07-06 20:48:48 +02:00
parent ce52aaccc1
commit 1f141dbe3a
2 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ struct LegoAnimActorStruct {
float GetUnknown0x00() { return m_unk0x00; }
// BETA10: FUNCTION 0x10012210
// FUNCTION: BETA10 0x10012210
LegoAnim* GetAnimTreePtr() { return m_AnimTreePtr; }
// TODO: Possibly private

View File

@ -145,8 +145,8 @@ void LegoRaceCar::FUN_10012ff0(float p_param)
}
else {
// TODO: Possibly an enum?
const char LEGORACECAR_KICK2 = 4;
assert(m_userState == LEGORACECAR_KICK2);
const char legoracecarKick2 = 4; // original name: LEGORACECAR_KICK2
assert(m_userState == legoracecarKick2);
a = m_unk0x74;
}
@ -172,16 +172,16 @@ void LegoRaceCar::FUN_10012ff0(float p_param)
else if (a->GetAnimTreePtr()->GetCamAnim()) {
MxMatrix transformationMatrix;
LegoWorld* current_world = CurrentWorld(); // called `r` in BETA10
assert(current_world);
LegoWorld* currentWorld = CurrentWorld(); // called `r` in BETA10
assert(currentWorld);
transformationMatrix.SetIdentity();
// Possible bug in the original code: The first argument is not initialized
a->GetAnimTreePtr()->GetCamAnim()->FUN_1009f490(deltaTime, transformationMatrix);
if (current_world->GetCamera()) {
current_world->GetCamera()->FUN_100123e0(transformationMatrix, 0);
if (currentWorld->GetCamera()) {
currentWorld->GetCamera()->FUN_100123e0(transformationMatrix, 0);
}
m_roi->FUN_100a58f0(transformationMatrix);