Implement/match LegoPathController::AddActor and RemoveActor (#915)

* Implement/match LegoPathController::AddActor and RemoveActor

* Fix types
This commit is contained in:
Christian Semmler
2024-05-13 06:46:59 -04:00
committed by GitHub
parent 91fe09af3c
commit 5f34d2e877
14 changed files with 145 additions and 69 deletions

View File

@@ -526,7 +526,7 @@ void Isle::Enable(MxBool p_enable)
m_act1state->m_unk0x018 = 5;
}
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -549,7 +549,7 @@ void Isle::Enable(MxBool p_enable)
SetIsWorldActive(FALSE);
break;
case LegoGameState::e_bike:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -562,7 +562,7 @@ void Isle::Enable(MxBool p_enable)
#endif
break;
case LegoGameState::e_dunecar:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -575,7 +575,7 @@ void Isle::Enable(MxBool p_enable)
#endif
break;
case LegoGameState::e_motocycle:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -588,7 +588,7 @@ void Isle::Enable(MxBool p_enable)
#endif
break;
case LegoGameState::e_copter:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -601,7 +601,7 @@ void Isle::Enable(MxBool p_enable)
#endif
break;
case LegoGameState::e_skateboard:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE
@@ -614,7 +614,7 @@ void Isle::Enable(MxBool p_enable)
#endif
break;
case LegoGameState::e_jetski:
FUN_1001fa70(CurrentActor());
AddPathActor(CurrentActor());
SetIsWorldActive(TRUE);
#ifdef COMPAT_MODE