Changeset 10545 in orxonox.OLD for trunk/src/world_entities/projectiles/mbolt.cc
- Timestamp:
- Jan 31, 2007, 5:39:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/mbolt.cc
r10420 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" … … 176 178 this->trail->tick(dt); 177 179 178 for( ObjectList< Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)180 for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++) 179 181 { 180 182 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8) 181 183 { 182 (*eIterator)-> hit (this->getDamage(),this);184 (*eIterator)->destroy(this); //hit (this->getDamage(),this); 183 185 this->deactivate(); 184 186 PRINTF(0)("MBolt destroyed\n");
Note: See TracChangeset
for help on using the changeset viewer.