Clear unknowns in LegoBuildingInfo and LegoBuildingManager (#1566)

* Clear unknowns in `LegoBuildingInfo` and `LegoBuildingManager`

* Name remaining unknown in `LegoBuildingManager`
This commit is contained in:
Fabian Neundorf
2025-06-16 23:08:17 +02:00
committed by GitHub
parent 16ccb0e06e
commit fd3f08f4c4
7 changed files with 107 additions and 102 deletions

View File

@@ -588,7 +588,7 @@ MxLong Act3::Notify(MxParam& p_param)
m_unk0x421e = 0;
while (--length >= 0) {
if (info[length].m_unk0x11 < 0 && info[length].m_boundary != NULL &&
if (info[length].m_counter < 0 && info[length].m_boundary != NULL &&
info[length].m_entity != NULL) {
m_unk0x421e++;
}
@@ -665,7 +665,7 @@ MxLong Act3::HandleTransitionEnd()
void Act3::ReadyWorld()
{
PlantManager()->SetInitialCounters();
BuildingManager()->FUN_10030800();
BuildingManager()->SetInitialCounters();
AnimationManager()->FUN_1005f6d0(FALSE);
VideoManager()->Get3DManager()->SetFrustrum(90.0f, 0.1f, 125.0f);

View File

@@ -1386,7 +1386,7 @@ void Infocenter::Reset()
}
PlantManager()->ClearCounters();
BuildingManager()->FUN_10030590();
BuildingManager()->ClearCounters();
AnimationManager()->Reset(FALSE);
CharacterManager()->ReleaseAllActors();
GameState()->SetCurrentAct(LegoGameState::e_act1);