Clear unknowns in LegoVehicleBuildState (#1684)

This commit is contained in:
Fabian Neundorf
2025-09-08 18:19:49 +02:00
committed by GitHub
parent ef2d438a7d
commit 4460d2a33d
3 changed files with 46 additions and 43 deletions

View File

@@ -583,11 +583,11 @@ void IslePathActor::SpawnPlayer(LegoGameState::Area p_area, MxBool p_enter, MxU8
break;
}
if (state != NULL && state->m_unk0x4d && !state->m_unk0x4e) {
if (state != NULL && state->m_finishedBuild && !state->m_playedExitScript) {
if (AnimationManager()
->FUN_10060dc0(anim, NULL, TRUE, LegoAnimationManager::e_unk0, NULL, FALSE, TRUE, TRUE, TRUE) ==
SUCCESS) {
state->m_unk0x4e = TRUE;
state->m_playedExitScript = TRUE;
camAnim = FALSE;
}
}