mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Implement/match Act1State::PlaceActors and related (#1142)
* Implement/match Act1State::PlaceActors and related * Fix naming
This commit is contained in:
committed by
GitHub
parent
6885abdc78
commit
5d3d66965d
@@ -728,3 +728,13 @@ void LegoPathActor::UpdatePlane(LegoNamedPlane& p_namedPlane)
|
||||
p_namedPlane.SetDirection(GetWorldDirection());
|
||||
p_namedPlane.SetUp(GetWorldUp());
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1002f830
|
||||
void LegoPathActor::PlaceActor(LegoNamedPlane& p_namedPlane)
|
||||
{
|
||||
if (strcmp(p_namedPlane.GetName()->GetData(), "") != 0) {
|
||||
LegoWorld* world = CurrentWorld();
|
||||
world->PlaceActor(this, p_namedPlane.GetName()->GetData(), 0, 0.5f, 1, 0.5f);
|
||||
SetLocation(p_namedPlane.GetPosition(), p_namedPlane.GetDirection(), p_namedPlane.GetUp(), TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user