mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement LegoWorld::Enable (#516)
* WIP VTable0x68 * Improve match * Match * Fix * Fix * Move vars * Match * Add call to Isle * Rename functions * Fix style
This commit is contained in:

committed by
GitHub

parent
a7acf8c607
commit
558bda4dd2
@@ -55,7 +55,7 @@ void LegoEntity::Destroy(MxBool p_fromDestructor)
|
||||
m_roi->SetUnknown0x104(NULL);
|
||||
}
|
||||
|
||||
GetUnkSaveDataWriter()->FUN_10083db0(m_roi);
|
||||
UnkSaveDataWriter()->FUN_10083db0(m_roi);
|
||||
}
|
||||
else {
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->Remove(*m_roi);
|
||||
@@ -70,7 +70,7 @@ void LegoEntity::Destroy(MxBool p_fromDestructor)
|
||||
// FUNCTION: LEGO1 0x10010880
|
||||
void LegoEntity::SetWorld()
|
||||
{
|
||||
LegoWorld* world = GetCurrentWorld();
|
||||
LegoWorld* world = CurrentWorld();
|
||||
if (world != NULL && world != (LegoWorld*) this) {
|
||||
world->Add(this);
|
||||
}
|
||||
@@ -91,7 +91,7 @@ void LegoEntity::SetLocation(Mx3DPointFloat& p_location, Mx3DPointFloat& p_direc
|
||||
// FUNCTION: LEGO1 0x10010c30
|
||||
void LegoEntity::FUN_10010c30()
|
||||
{
|
||||
LegoWorld* world = GetCurrentWorld();
|
||||
LegoWorld* world = CurrentWorld();
|
||||
|
||||
if (m_cameraFlag && world && world->GetCamera() && m_roi) {
|
||||
world->GetCamera()->FUN_100123e0(m_roi->GetLocal2World(), 1);
|
||||
|
Reference in New Issue
Block a user