mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-10 03:39:06 +00:00
CElementGen: Collapse loop into a ranged-for loop
Same behavior, nicer syntax.
This commit is contained in:
parent
c14721611b
commit
384efebf55
@ -1136,8 +1136,7 @@ void CElementGen::RenderLines() {
|
|||||||
|
|
||||||
m_lineRenderer->Reset();
|
m_lineRenderer->Reset();
|
||||||
|
|
||||||
for (size_t i = 0; i < x30_particles.size(); ++i) {
|
for (auto& particle : x30_particles) {
|
||||||
CParticle& particle = x30_particles[i];
|
|
||||||
g_currentParticle = &particle;
|
g_currentParticle = &particle;
|
||||||
|
|
||||||
int partFrame = x74_curFrame - particle.x28_startFrame;
|
int partFrame = x74_curFrame - particle.x28_startFrame;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user