Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4314 in orxonox.OLD for orxonox/branches/physics/src/lib


Ignore:
Timestamp:
May 26, 2005, 11:36:24 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/physics: nicer fog trailing our little ship

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.cc

    r4307 r4314  
    8282void ParticleEmitter::setSize(float emitterSize)
    8383{
    84   this->emitterSize = emitterSize;
     84  if (emitterSize > 0.0)
     85    this->emitterSize = emitterSize;
     86  else
     87    emitterSize = 0.0;
    8588}
    8689
     
    9497void ParticleEmitter::setEmissionRate(float emissionRate)
    9598{
    96   this->emissionRate = emissionRate;
     99  if (emissionRate > 0.0)
     100    this->emissionRate = emissionRate;
     101  else
     102    this->emissionRate = 0.0;
    97103}
    98104
Note: See TracChangeset for help on using the changeset viewer.