Changeset 10109 in orxonox.OLD for branches/playability/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Dec 19, 2006, 11:14:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10104 r10109 137 137 this->hitEntity = entity; 138 138 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 139 this->destroy( NULL);139 this->destroy(this); 140 140 } 141 141 … … 243 243 this->lastDir = this->curDir; 244 244 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 :) 246 246 { 247 247 dynamic_cast<WorldEntity*>(target)->destroy( this); … … 256 256 { 257 257 258 printf("THIS SHOULD WORK!\n");258 // printf("THIS SHOULD WORK!\n"); 259 259 260 260 Projectile::destroy( killer );
Note: See TracChangeset
for help on using the changeset viewer.