2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +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

@@ -227,7 +227,7 @@ bool CParticleSwoosh::Update(double dt)
CParticleGlobals::UpdateParticleLifetimeTweenValues(0);
CGlobalRandom gr(x1c0_rand);
float evalTime = x28_curFrame * (1.f / 60.f);
double evalTime = x28_curFrame / 60.0;
float time = 1.f;
if (CRealElement* timeElem = x1c_desc->x4_TIME.get())
timeElem->GetValue(x28_curFrame, time);
@@ -290,7 +290,7 @@ bool CParticleSwoosh::Update(double dt)
UpdateTranslationAndOrientation();
evalTime += (1.f / 60.f);
evalTime += (1.0 / 60.0);
x28_curFrame += 1;
}