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

Several initial CParticleSwoosh implementations

This commit is contained in:
Jack Andersen
2017-06-03 18:54:47 -10:00
parent 6da6e37d42
commit ca9170bc88
7 changed files with 358 additions and 35 deletions

View File

@@ -453,7 +453,7 @@ CElementGen::~CElementGen()
g_ParticleAliveCount -= x30_particles.size();
}
void CElementGen::Update(double t)
bool CElementGen::Update(double t)
{
CParticleGlobals::SParticleSystem* prevSystem = CParticleGlobals::g_currentParticleSystem;
CParticleGlobals::SParticleSystem thisSystem { FOURCC('PART'), this };
@@ -470,8 +470,9 @@ void CElementGen::Update(double t)
InternalUpdate(pswt / 60.0);
x26d_25_warmedUp = true;
}
InternalUpdate(t);
bool ret = InternalUpdate(t);
CParticleGlobals::g_currentParticleSystem = prevSystem;
return ret;
}
bool CElementGen::InternalUpdate(double dt)