Changeset 7368 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Apr 25, 2006, 11:37:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/bomb.cc
r7193 r7368 183 183 void Bomb::detonate(float size) 184 184 { 185 std::list<WorldEntity*>* detonationList = ObjectManager::distanceFromObject(*this, size, CL_NPC); 186 if (detonationList != NULL) 187 { 188 while( !detonationList->empty() ) 185 ObjectManager::EntityList detonationList; 186 ObjectManager::distanceFromObject(detonationList, *this, size, CL_NPC); 187 while( !detonationList.empty() ) 189 188 { 190 detonationList ->front()->collidesWith(this, Vector(0,0,0));191 detonationList ->pop_front();189 detonationList.front()->collidesWith(this, Vector(0,0,0)); 190 detonationList.pop_front(); 192 191 } 193 delete detonationList;194 }195 192 }
Note: See TracChangeset
for help on using the changeset viewer.