Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 19, 2006, 6:23:56 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: rendering without the ParticleEngine, so now we are FAST :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/projectiles/laser.cc

    r6434 r6619  
    2424#include "model.h"
    2525
    26 #include "particle_engine.h"
    2726#include "particle_emitter.h"
    2827#include "particle_system.h"
     
    9392void Laser::deactivate()
    9493{
    95   ParticleEngine::getInstance()->breakConnections(this->emitter);
     94  assert (Laser::explosionParticles != NULL);
     95  Laser::explosionParticles->removeEmitter(this->emitter);
    9696  this->lifeCycle = 0.0;
    9797
     
    130130  PRINTF(5)("DESTROY Laser\n");
    131131  this->lifeCycle = .95; //!< @todo calculate this usefully.
    132   ParticleEngine::getInstance()->addConnection(this->emitter, Laser::explosionParticles);
     132
     133  this->emitter->setSystem(Laser::explosionParticles);
    133134}
    134135
Note: See TracChangeset for help on using the changeset viewer.