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
162void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleAttributes attributes) {162void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleAttributes attributes) {
163 163
164 for (int lifeStage = 0; lifeStage < NUM_PARTICLE_LIFE_STAGES; lifeStage ++ ) {164 for (int lifeStage = 0; lifeStage < NUM_PARTICLE_LIFE_STAGES; lifeStage ++ ) {
165 setParticleAttributes(emitterIndex, lifeStage, attributes);165 setParticleAttributes(emitterIndex, (ParticleLifeStage)lifeStage, attributes);
166 }166 }
167}167}
168 168
169void ParticleSystem::setParticleAttributes(int emitterIndex, int lifeStage, ParticleAttributes attributes) {169void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleLifeStage lifeStage, ParticleAttributes attributes) {
170 170
171 ParticleAttributes * a = &_emitter[emitterIndex].particleAttributes[lifeStage];171 ParticleAttributes * a = &_emitter[emitterIndex].particleAttributes[lifeStage];
172 172