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

Rethink BGCL

This commit is contained in:
2016-02-15 11:12:55 -08:00
parent 805471eb98
commit fe38bfec2d
4 changed files with 23 additions and 16 deletions

View File

@@ -1113,6 +1113,25 @@ bool CParticleDataFactory::CreateGPSM(CGenDescription* fillDesc, CInputStream& i
}
clsId = GetClassID(in);
}
/* Now for our custom additions, if available */
if (!in.atEnd())
{
clsId = GetClassID(in);
if (clsId == 0xFFFFFFFF)
return true;
while (clsId != SBIG('_END') && !in.atEnd())
{
switch(clsId)
{
case SBIG('BGCL'):
fillDesc->m_bevelGradient.reset(GetColorElement(in));
break;
}
clsId = GetClassID(in);
}
}
return true;
}