Changeset 10737 in orxonox.OLD for branches/presentation/src/world_entities/projectiles/hbolt.cc
- Timestamp:
- Jun 20, 2007, 6:17:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/projectiles/hbolt.cc
r10698 r10737 20 20 #include "state.h" 21 21 #include "model.h" 22 23 #include "world_entities/npcs/actionbox_enemy.h" 22 24 #include "world_entities/npcs/npc.h" 23 25 … … 125 127 { 126 128 printf("Collision with HBolt\n"); 127 if (this->hitEntity != entity && entity->isA(NPC::staticClassID()) || entity == this->target)129 if (this->hitEntity != entity/* && entity->isA(NPC::staticClassID())*/ && entity->isA(ActionboxEnemy::staticClassID()) || entity == this->target) 128 130 this->destroy( entity ); 129 131 this->hitEntity = entity; … … 148 150 this->angle += HBolt::rotationSpeed * dt; 149 151 150 for( ObjectList< NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++)152 for( ObjectList<ActionboxEnemy>::const_iterator eIterator = ActionboxEnemy::objectList().begin(); eIterator !=ActionboxEnemy::objectList().end(); eIterator++) 151 153 { 152 154 if( ((*eIterator)->getOMListNumber() != (this->origList -1)) && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
Note: See TracChangeset
for help on using the changeset viewer.