Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2007, 5:33:43 PM (17 years ago)
Author:
snellen
Message:

merged adm, hud, vs-enhancements : beni's responsible for this commit. blame him!

File:
1 edited

Legend:

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

    r10618 r10698  
    134134
    135135  this->toList(OM_DEAD);
    136   this->removeNode();
     136//   this->removeNode();
    137137  SwarmProjectile::fastFactory->kill(this);
    138138}
     
    200200    this->deactivate();
    201201
    202 
    203 
    204202/** old  guiding function*/
    205 
    206   float projectileVelocity = this->getVelocity().len();
     203  static float projectileVelocity = this->getVelocity().len();
    207204  if (target != NULL){
    208205    Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized();
     
    225222
    226223  this->angle += this->rotationSpeed * time;
    227 
    228   while (this->angle > 360)
    229   {
    230     this->angle -= 360;
    231   }
     224  while (this->angle > 360) { this->angle -= 360; }
    232225
    233226  this->lastDir = this->curDir;
     
    240233    PRINTF(0)("Target was hit by Swarm Missile!\n");
    241234  }
    242   else if( this->target == NULL)
     235  if( this->target == NULL)
    243236    this->deactivate();
    244237}
Note: See TracChangeset for help on using the changeset viewer.