mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Define LegoEntity::Type enum (#854)
* Define LegoEntity::Type enum * Use enum constant
This commit is contained in:
committed by
GitHub
parent
a9d67e4dd7
commit
180a1e6360
@@ -502,7 +502,7 @@ MxResult LegoAnimationManager::StartEntityAction(MxDSAction& p_dsAction, LegoEnt
|
||||
MxResult result = FAILURE;
|
||||
LegoROI* roi = p_entity->GetROI();
|
||||
|
||||
if (p_entity->GetUnknown0x59() == 0) {
|
||||
if (p_entity->GetType() == LegoEntity::e_character) {
|
||||
LegoPathActor* actor = CharacterManager()->GetActor(roi->GetName());
|
||||
|
||||
if (actor) {
|
||||
|
||||
@@ -211,7 +211,7 @@ done:
|
||||
LegoExtraActor* actor = new LegoExtraActor();
|
||||
|
||||
actor->SetROI(character->m_roi, FALSE, FALSE);
|
||||
actor->FUN_100114e0(0);
|
||||
actor->SetType(LegoEntity::e_character);
|
||||
actor->SetFlag(LegoActor::c_bit2);
|
||||
GetData(p_key)->m_actor = actor;
|
||||
}
|
||||
@@ -783,7 +783,7 @@ LegoROI* LegoCharacterManager::FUN_10085210(const char* p_name, const char* p_lo
|
||||
LegoEntity* entity = new LegoEntity();
|
||||
|
||||
entity->SetROI(roi, FALSE, FALSE);
|
||||
entity->FUN_100114e0(4);
|
||||
entity->SetType(LegoEntity::e_unk4);
|
||||
entity->SetFlag(LegoActor::c_bit2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user