Changeset 10698 in orxonox.OLD for trunk/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/swarm_projectile.cc
r10618 r10698 134 134 135 135 this->toList(OM_DEAD); 136 this->removeNode();136 // this->removeNode(); 137 137 SwarmProjectile::fastFactory->kill(this); 138 138 } … … 200 200 this->deactivate(); 201 201 202 203 204 202 /** old guiding function*/ 205 206 float projectileVelocity = this->getVelocity().len(); 203 static float projectileVelocity = this->getVelocity().len(); 207 204 if (target != NULL){ 208 205 Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized(); … … 225 222 226 223 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; } 232 225 233 226 this->lastDir = this->curDir; … … 240 233 PRINTF(0)("Target was hit by Swarm Missile!\n"); 241 234 } 242 elseif( this->target == NULL)235 if( this->target == NULL) 243 236 this->deactivate(); 244 237 }
Note: See TracChangeset
for help on using the changeset viewer.