Clear unknowns cam animations

This commit is contained in:
Florian Kaiser 2026-03-14 11:55:13 +01:00 committed by Fabian Neundorf
parent e5f9888aea
commit d7129ba668
3 changed files with 6 additions and 6 deletions

View File

@ -19,12 +19,12 @@ DECOMP_SIZE_ASSERT(LegoPathStruct, 0x14)
extern MxU32 g_isleFlags;
// GLOBAL: LEGO1 0x100f119c
MxBool g_alsoInvertDirection = FALSE;
MxBool g_triggerHandlingIgnoreDirection = FALSE;
// FUNCTION: LEGO1 0x1001b700
void LegoPathStruct::HandleTrigger(LegoPathActor* p_actor, MxBool p_direction, MxU32 p_data)
{
if (!HandleTrigger(p_actor, p_direction, p_data, FALSE) && g_alsoInvertDirection) {
if (!HandleTrigger(p_actor, p_direction, p_data, FALSE) && g_triggerHandlingIgnoreDirection) {
HandleTrigger(p_actor, p_direction, p_data, TRUE);
}
}

View File

@ -23,7 +23,7 @@
#include "scripts.h"
// Defined in legopathstruct.cpp
extern MxBool g_alsoInvertDirection;
extern MxBool g_triggerHandlingIgnoreDirection;
// Defined in jetski.cpp
extern const char* g_varJSFRNTY5;
@ -70,7 +70,7 @@ MxResult JetskiRace::Create(MxDSAction& p_dsAction)
InvokeAction(Extra::e_start, m_atomId, raceCarDashboardStreamId, NULL);
InvokeAction(Extra::e_start, m_atomId, JetraceScript::c_JetskiDashboard, NULL);
g_alsoInvertDirection = TRUE;
g_triggerHandlingIgnoreDirection = TRUE;
return result;
}

View File

@ -12,7 +12,7 @@ DECOMP_SIZE_ASSERT(RaceState::Entry, 0x06)
DECOMP_SIZE_ASSERT(RaceState, 0x2c)
// Defined in legopathstruct.cpp
extern MxBool g_alsoInvertDirection;
extern MxBool g_triggerHandlingIgnoreDirection;
// FUNCTION: LEGO1 0x10015aa0
LegoRace::LegoRace()
@ -56,7 +56,7 @@ MxResult LegoRace::Create(MxDSAction& p_dsAction)
// FUNCTION: BETA10 0x100c7ab5
LegoRace::~LegoRace()
{
g_alsoInvertDirection = FALSE;
g_triggerHandlingIgnoreDirection = FALSE;
if (m_pathActor) {
SetUserActor(m_pathActor);
NavController()->ResetMaxLinearVel(m_pathActor->GetMaxLinearVel());