History

cleaned up some magic numbers

Jeffrey Ventrella committed 13 years ago

Commit 5e2dcfe1 parent aee29a04 files · +61 −47Browse files

Showing the changes to interface/src/ParticleSystem.cpp (1 of 4 files). Show all

Unified · Split

interface/src/ParticleSystem.cpp+2−2
@@ -162,11 +162,11 @@ void ParticleSystem::killParticle(int p) { · 161 unmodified lines
162162 void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleAttributes attributes) {
163163
164164 for (int lifeStage = 0; lifeStage < NUM_PARTICLE_LIFE_STAGES; lifeStage ++ ) {
165− setParticleAttributes(emitterIndex, lifeStage, attributes);
165+ setParticleAttributes(emitterIndex, (ParticleLifeStage)lifeStage, attributes);
166166 }
167167 }
168168
169−void ParticleSystem::setParticleAttributes(int emitterIndex, int lifeStage, ParticleAttributes attributes) {
169+void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleLifeStage lifeStage, ParticleAttributes attributes) {
170170
171171 ParticleAttributes * a = &_emitter[emitterIndex].particleAttributes[lifeStage];
172172