Rename function/style

This commit is contained in:
Christian Semmler 2024-03-23 13:55:06 -04:00
parent 7b3a870e2a
commit 31492e3cae
3 changed files with 7 additions and 4 deletions

View File

@ -70,7 +70,7 @@ class LegoNavController : public MxCore {
float p_rs, float p_rs,
MxBool p_urs MxBool p_urs
); );
static MxResult SetLocation(MxU32 p_location); static MxResult UpdateCameraLocation(MxU32 p_location);
static MxResult UpdateCameraLocation(const char* p_location); static MxResult UpdateCameraLocation(const char* p_location);
// SYNTHETIC: LEGO1 0x10054c10 // SYNTHETIC: LEGO1 0x10054c10

View File

@ -889,7 +889,7 @@ void LegoGameState::SwitchArea(Area p_area)
LoadIsle(); LoadIsle();
VariableTable()->SetVariable("VISIBILITY", "Hide Gas"); VariableTable()->SetVariable("VISIBILITY", "Hide Gas");
CurrentActor()->ResetWorldTransform(FALSE); CurrentActor()->ResetWorldTransform(FALSE);
NavController()->SetLocation(0x3b); NavController()->UpdateCameraLocation(59); // LCAMZG1 in g_cameraLocations
VideoManager()->Get3DManager()->SetFrustrum(90, 0.1f, 250.0f); VideoManager()->Get3DManager()->SetFrustrum(90, 0.1f, 250.0f);
InvokeAction(Extra::ActionType::e_start, *g_isleScript, IsleScript::c_GaraDoor, NULL); InvokeAction(Extra::ActionType::e_start, *g_isleScript, IsleScript::c_GaraDoor, NULL);
break; break;

View File

@ -436,9 +436,10 @@ MxResult LegoNavController::UpdateCameraLocation(const char* p_location)
} }
// FUNCTION: LEGO1 0x10055620 // FUNCTION: LEGO1 0x10055620
MxResult LegoNavController::SetLocation(MxU32 p_location) MxResult LegoNavController::UpdateCameraLocation(MxU32 p_location)
{ {
MxResult result = FAILURE; MxResult result = FAILURE;
if (p_location < _countof(g_cameraLocations)) { if (p_location < _countof(g_cameraLocations)) {
MxMatrix mat; MxMatrix mat;
LegoROI* viewROI = VideoManager()->GetViewROI(); LegoROI* viewROI = VideoManager()->GetViewROI();
@ -463,8 +464,10 @@ MxResult LegoNavController::SetLocation(MxU32 p_location)
viewROI->GetWorldUp(), viewROI->GetWorldUp(),
viewROI->GetWorldVelocity() viewROI->GetWorldVelocity()
); );
result = SUCCESS; result = SUCCESS;
} }
return result; return result;
} }
@ -487,6 +490,7 @@ MxLong LegoNavController::Notify(MxParam& p_param)
{ {
if (((MxNotificationParam&) p_param).GetType() == c_notificationKeyPress) { if (((MxNotificationParam&) p_param).GetType() == c_notificationKeyPress) {
m_unk0x5d = TRUE; m_unk0x5d = TRUE;
switch (((LegoEventNotificationParam&) p_param).GetKey()) { switch (((LegoEventNotificationParam&) p_param).GetKey()) {
case VK_PAUSE: case VK_PAUSE:
if (Lego()->IsTimerRunning()) { if (Lego()->IsTimerRunning()) {
@ -496,7 +500,6 @@ MxLong LegoNavController::Notify(MxParam& p_param)
Lego()->StartTimer(); Lego()->StartTimer();
} }
break; break;
case VK_ESCAPE: { case VK_ESCAPE: {
LegoWorld* currentWorld = CurrentWorld(); LegoWorld* currentWorld = CurrentWorld();
if (currentWorld) { if (currentWorld) {