Changeset 8875 in orxonox.OLD for branches/single_player_map/src/world_entities/door.cc
- Timestamp:
- Jun 28, 2006, 5:25:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/door.cc
r8874 r8875 100 100 const std::list<BaseObject*>* list = ClassList::getList(CL_PLAYABLE); 101 101 WorldEntity* entity; 102 float distance; 102 103 103 104 if( list == NULL) … … 109 110 entity = dynamic_cast<WorldEntity*>(*it); 110 111 112 distance = fabs((this->getAbsCoor() - entity->getAbsCoor()).len()); 113 if( distance < this->actionRadius) 114 return true; 111 115 } 112 116 … … 117 121 for( it = list->begin(); it != list->end(); it++) 118 122 { 123 entity = dynamic_cast<WorldEntity*>(*it); 119 124 125 distance = fabs((this->getAbsCoor() - entity->getAbsCoor()).len()); 126 if( distance < this->actionRadius) 127 return true; 120 128 } 121 129
Note: See TracChangeset
for help on using the changeset viewer.