Minor fixes

This commit is contained in:
Christian Semmler 2024-06-21 10:16:40 -04:00
parent 1d666f62e5
commit bbdda6ebee
5 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ class LegoBuildingManager : public MxCore {
static void SetCustomizeAnimFile(const char* p_value); static void SetCustomizeAnimFile(const char* p_value);
void Init(); void Init();
void FUN_1002fa00(); void LoadWorldInfo();
void CreateBuilding(MxS32 p_index, LegoWorld* p_world); void CreateBuilding(MxS32 p_index, LegoWorld* p_world);
void Reset(); void Reset();
MxResult Write(LegoStorage* p_storage); MxResult Write(LegoStorage* p_storage);

View File

@ -10,7 +10,7 @@ class LegoPathBoundary;
// SIZE 0x54 // SIZE 0x54
struct LegoPlantInfo { struct LegoPlantInfo {
// See LegoOmni::RegisterWorlds for IDs // See LegoOmni::RegisterWorlds for IDs
enum Worlds { enum World {
c_act1 = 1 << 0, c_act1 = 1 << 0,
c_imain = 1 << 1, c_imain = 1 << 1,
c_ielev = 1 << 4, c_ielev = 1 << 4,

View File

@ -257,7 +257,7 @@ void LegoBuildingManager::Init()
// FUNCTION: LEGO1 0x1002fa00 // FUNCTION: LEGO1 0x1002fa00
// FUNCTION: BETA10 0x10063ad1 // FUNCTION: BETA10 0x10063ad1
void LegoBuildingManager::FUN_1002fa00() void LegoBuildingManager::LoadWorldInfo()
{ {
MxS32 i; MxS32 i;
LegoWorld* world = CurrentWorld(); LegoWorld* world = CurrentWorld();

View File

@ -694,7 +694,7 @@ void LegoWorld::Enable(MxBool p_enable)
if (m_worldId != -1) { if (m_worldId != -1) {
PlantManager()->LoadWorldInfo(m_worldId); PlantManager()->LoadWorldInfo(m_worldId);
AnimationManager()->LoadWorldInfo(m_worldId); AnimationManager()->LoadWorldInfo(m_worldId);
BuildingManager()->FUN_1002fa00(); BuildingManager()->LoadWorldInfo();
AnimationManager()->Resume(); AnimationManager()->Resume();
} }

View File

@ -57,7 +57,7 @@ LegoWorldPresenter::~LegoWorldPresenter()
MxS32 worldId = ((LegoWorld*) m_entity)->GetWorldId(); MxS32 worldId = ((LegoWorld*) m_entity)->GetWorldId();
PlantManager()->LoadWorldInfo(worldId); PlantManager()->LoadWorldInfo(worldId);
AnimationManager()->LoadWorldInfo(worldId); AnimationManager()->LoadWorldInfo(worldId);
BuildingManager()->FUN_1002fa00(); BuildingManager()->LoadWorldInfo();
result = ((LegoWorld*) m_entity)->VTable0x5c(); result = ((LegoWorld*) m_entity)->VTable0x5c();
} }