2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

DCLN OBB transform fix

This commit is contained in:
Jack Andersen
2019-03-07 18:16:42 -10:00
parent 4b042f6f9a
commit f40bf707f6
13 changed files with 45 additions and 40 deletions

View File

@@ -409,7 +409,7 @@ CEntity* ScriptLoader::LoadActor(CStateManager& mgr, CInputStream& in, int propC
CActorParameters actParms = LoadActorParameters(in);
bool looping = in.readBool();
bool snow = in.readBool();
bool immovable = in.readBool();
bool solid = in.readBool();
bool cameraPassthrough = in.readBool();
bool active = in.readBool();
@@ -427,8 +427,8 @@ CEntity* ScriptLoader::LoadActor(CStateManager& mgr, CInputStream& in, int propC
zeus::CAABox aabb = GetCollisionBox(mgr, info.GetAreaId(), collisionExtent, centroid);
CMaterialList list;
if (snow) // Bool 2
list.Add(EMaterialTypes::Snow);
if (immovable) // Bool 2
list.Add(EMaterialTypes::Immovable);
if (solid) // Bool 3
list.Add(EMaterialTypes::Solid);