This commit is contained in:
Christian Semmler 2024-02-02 11:44:28 -05:00
parent 2f0b4e2030
commit caea16cb75

View File

@ -519,8 +519,8 @@ MxCore* LegoWorld::Find(const MxAtomId& p_atom, MxS32 p_entityId)
// FUNCTION: LEGO1 0x10021a70 // FUNCTION: LEGO1 0x10021a70
void LegoWorld::VTable0x68(MxBool p_add) void LegoWorld::VTable0x68(MxBool p_add)
{ {
if (p_add) { if (p_add && !m_set0xd0.empty()) {
if (!m_set0xd0.empty() && CurrentWorld() != this) { if (CurrentWorld() != this) {
if (CurrentWorld()) { if (CurrentWorld()) {
AnimationManager()->FUN_10061010(0); AnimationManager()->FUN_10061010(0);
CurrentWorld()->VTable0x68(FALSE); CurrentWorld()->VTable0x68(FALSE);
@ -569,7 +569,7 @@ void LegoWorld::VTable0x68(MxBool p_add)
SetIsWorldActive(TRUE); SetIsWorldActive(TRUE);
} }
} }
else if (m_set0xd0.empty()) { else if (!p_add && m_set0xd0.empty()) {
MxPresenter* presenter; MxPresenter* presenter;
LegoPathController* controller; LegoPathController* controller;
IslePathActor* vehicle = CurrentVehicle(); IslePathActor* vehicle = CurrentVehicle();