mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 17:04:17 +00:00
Implement/match actor Create functions (#949)
This commit is contained in:
committed by
GitHub
parent
63719ef689
commit
e59d684f37
@@ -40,15 +40,16 @@ Helicopter::~Helicopter()
|
||||
MxResult Helicopter::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
MxResult result = IslePathActor::Create(p_dsAction);
|
||||
LegoWorld* world = CurrentWorld();
|
||||
SetWorld(world);
|
||||
if (world->IsA("Act3")) {
|
||||
((Act3*) GetWorld())->SetUnknown420c(this);
|
||||
|
||||
m_world = CurrentWorld();
|
||||
if (m_world->IsA("Act3")) {
|
||||
((Act3*) m_world)->SetUnknown420c(this);
|
||||
}
|
||||
world = GetWorld();
|
||||
if (world) {
|
||||
world->Add(this);
|
||||
|
||||
if (m_world != NULL) {
|
||||
m_world->Add(this);
|
||||
}
|
||||
|
||||
CreateState();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user