Changeset 6619 in orxonox.OLD for trunk/src/lib/particles/particle_system.cc
- Timestamp:
- Jan 19, 2006, 6:23:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_system.cc
r6612 r6619 19 19 20 20 #include "particle_emitter.h" 21 #include "particle_engine.h"22 21 23 22 #include "field.h" … … 69 68 ParticleSystem::~ParticleSystem() 70 69 { 71 // delete what has to be deleted here72 ParticleEngine::getInstance()->removeSystem(this);73 74 70 // deleting all the living Particles 75 71 while (this->particles) … … 108 104 this->glID = NULL; 109 105 this->setType(PARTICLE_DEFAULT_TYPE, 1); 110 ParticleEngine::getInstance()->addSystem(this);111 106 112 107 this->toList(OM_ENVIRON); … … 297 292 void ParticleSystem::addEmitter(ParticleEmitter* emitter) 298 293 { 294 assert (emitter != NULL); 295 if (emitter->getSystem() != NULL) 296 emitter->getSystem()->removeEmitter(emitter); 299 297 this->emitters.push_back(emitter); 300 298 }
Note: See TracChangeset
for help on using the changeset viewer.