Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2006, 11:14:27 PM (18 years ago)
Author:
nicolasc
Message:

bump

Location:
branches/playability/src/world_entities/projectiles
Files:
2 edited

Legend:

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

    r10104 r10109  
    117117{
    118118  printf("Collision with HBolt\n");
    119   if (this->hitEntity != entity/* && entity->isA(CL_NPC)*/ || entity == this->target)
     119  if (this->hitEntity != entity && entity->isA(CL_NPC) || entity == this->target)
    120120    this->destroy( entity );
    121121  this->hitEntity = entity;
    122122  dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
    123 //   this->deactivate();
     123  this->deactivate();
    124124}
    125125
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10104 r10109  
    137137  this->hitEntity = entity;
    138138  dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());
    139   this->destroy(NULL);
     139  this->destroy(this);
    140140}
    141141
     
    243243  this->lastDir = this->curDir;
    244244  this->curDir = this->velocity;
    245   if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 1)   // FIXME  Temp fake workaround for collision :)
     245  if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 3)   // FIXME  Temp fake workaround for collision :)
    246246  {
    247247    dynamic_cast<WorldEntity*>(target)->destroy( this);
     
    256256{
    257257
    258   printf("THIS SHOULD WORK!\n");
     258//   printf("THIS SHOULD WORK!\n");
    259259
    260260  Projectile::destroy( killer );
Note: See TracChangeset for help on using the changeset viewer.