Changeset 10545 in orxonox.OLD for trunk/src/world_entities/projectiles/lbolt.cc
- Timestamp:
- Jan 31, 2007, 5:39:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/lbolt.cc
r10511 r10545 22 22 #include "state.h" 23 23 #include "model.h" 24 25 #include "world_entities/npcs/npc.h" 24 26 25 27 #include "particles/dot_emitter.h" … … 148 150 angle += rotationSpeed * dt; 149 151 150 for( ObjectList< Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)152 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) 151 153 { 152 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) 154 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8) 153 155 { 154 (*eIterator)-> hit (this->getDamage(),this);156 (*eIterator)->destroy(this); //hit (this->getDamage(),this); 155 157 this->deactivate(); 156 158 PRINTF(0)("LBolt destroyed\n");
Note: See TracChangeset
for help on using the changeset viewer.