Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6627 in orxonox.OLD


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

trunk: valgrind sweep

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r6609 r6627  
    525525
    526526#--------#
    527 # FFmpeg # 
     527# FFmpeg #
    528528#--------#
    529529# checking for FFmpeg-headers
  • trunk/src/lib/math/quaternion.h

    r6616 r6627  
    4343  Quaternion (float m[4][4]);
    4444  /** turns a rotation along an axis into a Quaternion @param angle: the amount of radians to rotate @param axis: the axis to rotate around */
    45   inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2); v = axis * sin(angle/2); }
     45  inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2.0); v = axis * sin(angle/2.0); }
    4646  Quaternion (const Vector& dir, const Vector& up);
    4747  Quaternion (float roll, float pitch, float yaw);
  • trunk/src/lib/particles/particle_emitter.cc

    r6625 r6627  
    4242  this->setEmissionRate(emissionRate);
    4343  this->setEmissionVelocity(velocity);
    44 
    4544}
    4645
     
    7978  this->setEmissionRate(PARTICLE_EMITTER_DEFAULT_EMISSION_RATE);
    8079  this->setSize(PARTICLE_EMITTER_DEFAULT_SIZE);
     80  this->setEmissionMomentum(0);
     81  this->setEmissionVelocity(1.0);
     82  this->setSpread(M_PI);
    8183
    8284  this->system = NULL;
  • trunk/src/world_entities/projectiles/guided_missile.cc

    r6622 r6627  
    6060
    6161  /* this is normaly done by World.cc by deleting the ParticleEngine */
    62   if (GuidedMissile::trailParticles != NULL && ClassList::getList(CL_TEST_BULLET)->size() <= 1)
     62  if (GuidedMissile::trailParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1)
    6363  {
    6464    if (ClassList::exists(GuidedMissile::trailParticles, CL_PARTICLE_SYSTEM))
     
    6666    GuidedMissile::trailParticles = NULL;
    6767  }
    68   if (GuidedMissile::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->size() <= 1)
     68  if (GuidedMissile::explosionParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1)
    6969  {
    7070    if (ClassList::exists(GuidedMissile::explosionParticles, CL_PARTICLE_SYSTEM))
  • trunk/src/world_entities/projectiles/rocket.cc

    r6622 r6627  
    5959
    6060  /* this is normaly done by World.cc by deleting the ParticleEngine */
    61   if (Rocket::trailParticles != NULL && ClassList::getList(CL_TEST_BULLET)->size() <= 1)
     61  if (Rocket::trailParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)
    6262  {
    6363    if (ClassList::exists(Rocket::trailParticles, CL_PARTICLE_SYSTEM))
     
    6565    Rocket::trailParticles = NULL;
    6666  }
    67   if (Rocket::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->size() <= 1)
     67  if (Rocket::explosionParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)
    6868  {
    6969    if (ClassList::exists(Rocket::explosionParticles, CL_PARTICLE_SYSTEM))
Note: See TracChangeset for help on using the changeset viewer.