Add enum for actor IDs (#993)

This commit is contained in:
Christian Semmler
2024-06-05 12:11:46 -04:00
committed by GitHub
parent 6e7e9a3f20
commit 6a9f68872b
10 changed files with 59 additions and 49 deletions

View File

@@ -346,25 +346,25 @@ MxLong LegoEntity::Notify(MxParam& p_param)
}
else {
switch (GameState()->GetActorId()) {
case 1:
case LegoActor::c_pepper:
if (GameState()->GetCurrentAct() != LegoGameState::e_act2 &&
GameState()->GetCurrentAct() != LegoGameState::e_act3) {
VTable0x3c();
}
break;
case 2:
case LegoActor::c_mama:
VTable0x40();
break;
case 3:
case LegoActor::c_papa:
VTable0x44();
break;
case 4:
case LegoActor::c_nick:
VTable0x48(param.GetROI());
break;
case 5:
case LegoActor::c_laura:
VTable0x4c();
break;
case 6:
case LegoActor::c_brickster:
switch (m_type) {
case e_actor:
case e_unk1: