Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10601 in orxonox.OLD for branches/cleanup/src


Ignore:
Timestamp:
Mar 23, 2007, 12:21:42 AM (18 years ago)
Author:
rennerc
Message:

i hope i fixed some bugs :D

Location:
branches/cleanup/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/src/lib/collision_detection/obb_tree_node.cc

    r10033 r10601  
    629629    PRINTF(5)("s = %f, rA+rB = %f\n", fabs(t.dot(l)), rA+rB);
    630630
     631    //TODO valgrind complains about uninitialised value here
    631632    if( (rA + rB) < fabs(t.dot(l)))
    632633    {
  • branches/cleanup/src/lib/graphics/importer/bsp/bsp_manager.cc

    r10599 r10601  
    982982  float endDistance = end->dot(node->plane) - node->d;
    983983  float startDistance = start->dot(node->plane) - node->d;
    984 
    985 
     984 
    986985  if( node->isLeaf) {
    987986    leaf& curLeaf = this->bspFile->leaves[node->leafIndex];
     
    999998  }
    1000999
    1001 
     1000  //TODO valgrind complains about uninitialised value here
    10021001  if (startDistance >= 0 && endDistance >= 0)     // A
    10031002  {   // both points are in front of the plane
  • branches/cleanup/src/world_entities/effects/wobblegrid.cc

    r10593 r10601  
    9393  this->angularSpeed = M_PI; //180;
    9494  this->setModel(this->grid);
     95 
     96  this->angle = 0;
    9597
    9698  this->setUpdateFunction((*sinf));
  • branches/cleanup/src/world_entities/projectiles/swarm_projectile.cc

    r10579 r10601  
    6060  //this->trail->setParent( this);
    6161  this->trail->setTexture( "textures/laser.png");
     62 
     63  this->maxVelocity = 300;
     64
     65  this->rotationSpeed = 360;
     66  this->angle = 0;
    6267
    6368
     
    216221
    217222  this->angle += this->rotationSpeed * time;
     223
    218224  while (this->angle > 360)
     225  {
    219226    this->angle -= 360;
     227  }
    220228
    221229  this->lastDir = this->curDir;
  • branches/cleanup/src/world_entities/spectator.cc

    r10401 r10601  
    242242    this->yMouse += event.yRel;
    243243  }
    244   else if( event.type == KeyMapper::PEV_JUMP)
    245   {
     244  else if( event.type == KeyMapper::PEV_FIRE1 )
     245  {
     246    PRINTF(0)( "CURRENT POS: (%f, %f, %f) ROT (%f, (%f, %f, %f))\n", this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ(), this->getAbsDir().w, this->getAbsDir().v.x, this->getAbsDir().v.y, this->getAbsDir().v.z );
    246247//     FPSPlayer * fps = new FPSPlayer();
    247248//     //GenericNPC* fps = new GenericNPC();
  • branches/cleanup/src/world_entities/weapons/light_blaster.cc

    r10600 r10601  
    5555  for (int i = 0; i < this->getBarrels(); i++)
    5656  {
    57    delete [] this->shootAnim[i];
     57   //delete [] this->shootAnim[i];
    5858   delete [] this->objComp[i];
    5959  }
    6060  delete [] this->emissionPoint;
    61    delete [] this->shootAnim;
     61   //delete [] this->shootAnim;
    6262   delete [] this->objComp;
    6363
Note: See TracChangeset for help on using the changeset viewer.