Changeset 10261 in orxonox.OLD for branches/playability/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Jan 17, 2007, 4:14:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10196 r10261 129 129 130 130 131 void SwarmProjectile:: collidesWith(WorldEntity* entity, const Vector& location)131 void SwarmProjectile::hit (WorldEntity* entity, float damage) 132 132 { 133 133 if (this->hitEntity != entity) … … 135 135 this->hitEntity = entity; 136 136 //dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 137 this->destroy(this); 137 // this->destroy(this); 138 this->deactivate(); 138 139 } 139 140
Note: See TracChangeset
for help on using the changeset viewer.