Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2008, 2:34:54 AM (16 years ago)
Author:
landauf
Message:

used isInitialized() in destructors where needed and changed constructors back to normal variable initialization instead of the "myclass() : variable(value), …" pattern. in my opinion this is much more comfortable and I hope everyone agrees ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/ParticleProjectile.cc

    r1558 r1559  
    3737    CreateFactory(ParticleProjectile);
    3838
    39     ParticleProjectile::ParticleProjectile(SpaceShip* owner) : BillboardProjectile(owner), particles_(0)
     39    ParticleProjectile::ParticleProjectile(SpaceShip* owner) : BillboardProjectile(owner)
    4040    {
    4141        RegisterObject(ParticleProjectile);
     
    4747            this->particles_->getAllEmitters()->setDirection(-this->owner_->getInitialDir());
    4848            this->particles_->setKeepParticlesInLocalSpace(true);
     49        }
     50        else
     51        {
     52            this->particles_ = 0;
    4953        }
    5054    }
Note: See TracChangeset for help on using the changeset viewer.