Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2006, 11:18:22 AM (17 years ago)
Author:
marcscha
Message:

velocity fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10087 r10095  
    5959  this->physDamage = 200;
    6060
    61   this->trail = new Trail(2.5,4,.2);
    62   this->trail->setParent( this);
     61  this->trail = new Trail(2.5,4,.2, this);
     62  //this->trail->setParent( this);
    6363  this->trail->setTexture( "maps/laser.png");
    6464}
     
    240240  this->lastDir = this->curDir;
    241241  this->curDir = this->velocity;
     242  if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 4)   // FIXME  Temp fake workaround for collision :)
     243  {
     244    dynamic_cast<WorldEntity*>(target)->destroy( this);
     245    this->destroy( this);
     246  }
    242247}
    243248
Note: See TracChangeset for help on using the changeset viewer.