Refactor/improve matches in Act1State (#1143)

* Refactor/improve matches in Act1State

* Fix naming
This commit is contained in:
Christian Semmler
2024-11-10 14:47:12 -07:00
committed by GitHub
parent 5d3d66965d
commit cd261b9518
8 changed files with 200 additions and 193 deletions

View File

@@ -732,9 +732,9 @@ void LegoPathActor::UpdatePlane(LegoNamedPlane& p_namedPlane)
// FUNCTION: LEGO1 0x1002f830
void LegoPathActor::PlaceActor(LegoNamedPlane& p_namedPlane)
{
if (strcmp(p_namedPlane.GetName()->GetData(), "") != 0) {
if (p_namedPlane.IsPresent()) {
LegoWorld* world = CurrentWorld();
world->PlaceActor(this, p_namedPlane.GetName()->GetData(), 0, 0.5f, 1, 0.5f);
world->PlaceActor(this, p_namedPlane.GetName(), 0, 0.5f, 1, 0.5f);
SetLocation(p_namedPlane.GetPosition(), p_namedPlane.GetDirection(), p_namedPlane.GetUp(), TRUE);
}
}