- Timestamp:
- Oct 14, 2008, 12:20:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/Radar.cc
r1818 r1916 36 36 #include <cfloat> 37 37 #include <cassert> 38 #include "objects/WorldEntity.h"39 #include "objects/SpaceShip.h"40 38 #include "core/CoreIncludes.h" 41 39 #include "core/ConsoleCommand.h" … … 114 112 for (ObjectList<RadarViewable>::iterator itElement = ObjectList<RadarViewable>::begin(); itElement; ++itElement) 115 113 { 114 /* 116 115 if ((*itElement) != SpaceShip::getLocalShip() && (*itListener)->getRadarSensitivity() > (*itElement)->getRadarObjectCamouflage()) 117 116 (*itListener)->displayObject(*itElement, *itElement == this->focus_); 117 */ 118 118 } 119 119 } … … 130 130 else 131 131 { 132 Vector3 localPosition = SpaceShip::getLocalShip()->getPosition();132 Vector3 localPosition;// = SpaceShip::getLocalShip()->getPosition(); 133 133 Vector3 targetPosition = localPosition; 134 134 if (*(this->itFocus_)) … … 143 143 for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it) 144 144 { 145 /* 145 146 if (*it == SpaceShip::getLocalShip()) 146 147 continue; 147 148 */ 148 149 float targetDistance = localPosition.squaredDistance((*it)->getWorldPosition()); 149 150 if (targetDistance > currentDistance && targetDistance < nextDistance)
Note: See TracChangeset
for help on using the changeset viewer.