Changeset 4314 in orxonox.OLD for orxonox/branches/physics/src/lib
- Timestamp:
- May 26, 2005, 11:36:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.cc
r4307 r4314 82 82 void ParticleEmitter::setSize(float emitterSize) 83 83 { 84 this->emitterSize = emitterSize; 84 if (emitterSize > 0.0) 85 this->emitterSize = emitterSize; 86 else 87 emitterSize = 0.0; 85 88 } 86 89 … … 94 97 void ParticleEmitter::setEmissionRate(float emissionRate) 95 98 { 96 this->emissionRate = emissionRate; 99 if (emissionRate > 0.0) 100 this->emissionRate = emissionRate; 101 else 102 this->emissionRate = 0.0; 97 103 } 98 104
Note: See TracChangeset
for help on using the changeset viewer.