Created MloArchetype and TimeArchetype subclasses, Meta pointer improvement

This commit is contained in:
dexyfex
2017-09-28 14:28:09 +10:00
Unverified
parent 7ddd88e561
commit f974c9eb49
9 changed files with 167 additions and 179 deletions
+3 -3
View File
@@ -997,15 +997,15 @@ namespace CodeWalker.GameFiles
////not ideal: should transform all 8 corners!
}
if (Archetype.IsMloArchetype)
if (Archetype.Type == MetaName.CMloArchetypeDef)
{
//transform interior entities into world space...
var mlod = Archetype.MloData;
var mloa = Archetype as MloArchetype;
if (MloInstance == null)
{
MloInstance = new MloInstanceData();
}
MloInstance.CreateYmapEntities(this, mlod);
MloInstance.CreateYmapEntities(this, mloa);
if (BSRadius == 0.0f)
{