Changeset 6142 in orxonox.OLD for trunk/src/world_entities/weapons/laser.cc
- Timestamp:
- Dec 16, 2005, 7:13:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/laser.cc
r6056 r6142 77 77 void Laser::activate() 78 78 { 79 State::getWorldEntityList()->add(this);80 79 if (unlikely(Laser::explosionParticles == NULL)) 81 80 { … … 98 97 this->lifeCycle = 0.0; 99 98 100 // GarbageCollector::getInstance()->collect(this); 101 State::getWorldEntityList()->remove(this); 99 this->toList(OM_NULL); 102 100 this->removeNode(); 103 101 Laser::fastFactory->kill(this); … … 134 132 this->lifeCycle = .95; //!< @todo calculate this usefully. 135 133 ParticleEngine::getInstance()->addConnection(this->emitter, Laser::explosionParticles); 136 137 134 } 138 135
Note: See TracChangeset
for help on using the changeset viewer.