2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 02:27:42 +00:00

Finish CParticleElectric

This commit is contained in:
Jack Andersen
2017-06-10 16:57:35 -10:00
parent 92122a9b31
commit f8f3bf407a
8 changed files with 826 additions and 119 deletions

View File

@@ -17,7 +17,7 @@ static logvisor::Module Log("urde::CElementGen");
URDE_DECL_SPECIALIZE_SHADER(CElementGenShaders)
CRandom16 CElementGen::g_GlobalSeed = 99;
u16 CElementGen::g_GlobalSeed = 99;
int CElementGen::g_ParticleAliveCount;
int CElementGen::g_ParticleSystemAliveCount;
@@ -691,8 +691,8 @@ void CElementGen::UpdateChildParticleSystems(double dt)
CSpawnSystemKeyframeData* kssm = desc->xd0_xbc_KSSM.get();
if (kssm && x84_prevFrame != x74_curFrame && x74_curFrame < x268_PSLT)
{
CRandom16 backupSeed = g_GlobalSeed;
CRandom16 incSeed = backupSeed;
u16 backupSeed = g_GlobalSeed;
u16 incSeed = backupSeed;
std::vector<CSpawnSystemKeyframeData::CSpawnSystemKeyframeInfo>& systems =
kssm->GetSpawnedSystemsAtFrame(x74_curFrame);
@@ -706,7 +706,7 @@ void CElementGen::UpdateChildParticleSystems(double dt)
std::unique_ptr<CParticleGen> chGen = ConstructChildParticleSystem(token);
x290_activePartChildren.emplace_back(std::move(chGen));
}
incSeed.SetSeed(incSeed.GetSeed() + 1);
incSeed += 1;
}
g_GlobalSeed = backupSeed;