From 945d86864453a934c45f50a58a0fdd69bbea91a6 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 1 Jan 2026 09:41:37 -0700 Subject: [PATCH] Fix location/camera switching debug code (#760) --- .../legoomni/src/entity/legonavcontroller.cpp | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp index 7b1d4d11..d47103e2 100644 --- a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp +++ b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp @@ -840,7 +840,28 @@ MxLong LegoNavController::Notify(MxParam& p_param) // Add to base g_locations offset g_nextLocation += key - '0'; g_locationCalcStep = 0; - UpdateLocation(g_nextLocation); + + LegoPathActor* userActor = UserActor(); + if (userActor != NULL && (MxU32) g_nextLocation < sizeOfArray(g_locations)) { + LegoWorld* world = CurrentWorld(); + LegoLocation::Boundary* boundary = &g_locations[g_nextLocation].m_boundaryA; + if (world != NULL && boundary->m_name != NULL) { + world->PlaceActor( + userActor, + boundary->m_name, + boundary->m_src, + boundary->m_srcScale, + boundary->m_dest, + boundary->m_destScale + ); + } + userActor->SetLocation( + g_locations[g_nextLocation].m_position, + g_locations[g_nextLocation].m_direction, + g_locations[g_nextLocation].m_up, + FALSE + ); + } } } else if (g_animationCalcStep) {