Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6628 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 20, 2006, 2:55:12 AM (19 years ago)
Author:
bensch
Message:

trunk: segfault-prevention, and minor cleanup

File:
1 edited

Legend:

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

    r6627 r6628  
    3636Rocket::Rocket () : Projectile()
    3737{
    38   this->setClassID(CL_TEST_BULLET, "Rocket");
     38  this->setClassID(CL_ROCKET, "Rocket");
    3939
    4040  float modelSize = .3;
     
    6161  if (Rocket::trailParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)
    6262  {
    63     if (ClassList::exists(Rocket::trailParticles, CL_PARTICLE_SYSTEM))
    64       delete Rocket::trailParticles;
     63/*    if (ClassList::exists(Rocket::trailParticles, CL_PARTICLE_SYSTEM))
     64      delete Rocket::trailParticles;*/
    6565    Rocket::trailParticles = NULL;
    6666  }
    6767  if (Rocket::explosionParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)
    6868  {
    69     if (ClassList::exists(Rocket::explosionParticles, CL_PARTICLE_SYSTEM))
    70       delete Rocket::explosionParticles;
     69/*    if (ClassList::exists(Rocket::explosionParticles, CL_PARTICLE_SYSTEM))
     70      delete Rocket::explosionParticles;*/
    7171    Rocket::explosionParticles = NULL;
    7272  }
Note: See TracChangeset for help on using the changeset viewer.