Changeset 6619 in orxonox.OLD for trunk/src/world_entities/projectiles/laser.cc
- Timestamp:
- Jan 19, 2006, 6:23:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/laser.cc
r6434 r6619 24 24 #include "model.h" 25 25 26 #include "particle_engine.h"27 26 #include "particle_emitter.h" 28 27 #include "particle_system.h" … … 93 92 void Laser::deactivate() 94 93 { 95 ParticleEngine::getInstance()->breakConnections(this->emitter); 94 assert (Laser::explosionParticles != NULL); 95 Laser::explosionParticles->removeEmitter(this->emitter); 96 96 this->lifeCycle = 0.0; 97 97 … … 130 130 PRINTF(5)("DESTROY Laser\n"); 131 131 this->lifeCycle = .95; //!< @todo calculate this usefully. 132 ParticleEngine::getInstance()->addConnection(this->emitter, Laser::explosionParticles); 132 133 this->emitter->setSystem(Laser::explosionParticles); 133 134 } 134 135
Note: See TracChangeset
for help on using the changeset viewer.