Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 2:27:17 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: particles get deleted after theit life is over

File:
1 edited

Legend:

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

    r3933 r3934  
    112112{
    113113  // saving the time
    114   float countF = (dt+this->saveTime) * this->emissionRate;
    115   int count = (int)round(countF);
    116   this->saveTime = countF - (float)count;
    117 
    118   printf( "%d::%f::emmit %f\n", count, countF, emissionRate);
     114  float count = (dt+this->saveTime) * this->emissionRate;
     115  this->saveTime = modff(count, &count);
     116  this->saveTime /= this->emissionRate;
    119117
    120118  for (int i = 0; i <= count; i++)
Note: See TracChangeset for help on using the changeset viewer.