Changeset 10740 in orxonox.OLD for branches/presentation/src/world_entities/projectiles/acid_splash.cc
- Timestamp:
- Jun 20, 2007, 8:00:41 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/acid_splash.cc
r10701 r10740 24 24 #include <cassert> 25 25 #include "debug.h" 26 27 #include "obb_tree.h" 26 28 27 29 #include "effects/wobblegrid.h" … … 69 71 70 72 this->grid->toList(OM_ENVIRON); 73 74 this->obbTree = new OBBTree(); 75 this->obbTree->createBox(Vector(0.0f, 0.0f, 0.0f), Vector(1.0f, 1.0f, 1.0f)); 76 this->setOBBTree(this->obbTree); 71 77 } 72 78 … … 125 131 126 132 this->grid->tick(dt); 127 128 for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)129 {130 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)131 {132 (*eIterator)->hit (this->getDamage(),this);133 this->deactivate();134 }135 }136 137 133 } 138 134
Note: See TracChangeset
for help on using the changeset viewer.