mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Minor fixes
This commit is contained in:
parent
1d666f62e5
commit
bbdda6ebee
@ -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);
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user