Changeset 6116 for code/branches/presentation2/src/orxonox/controllers
- Timestamp:
- Nov 21, 2009, 1:16:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r6115 r6116 181 181 } 182 182 183 this->getControllableEntity()->setTarget(wePtr); 183 if( this->getControllableEntity()->getTarget() != wePtr ) 184 this->getControllableEntity()->setTarget(wePtr); 184 185 185 186 itr->movable->getParentSceneNode()->showBoundingBox(true); … … 198 199 { 199 200 pawn->setAimPosition( mouseRay.getOrigin() + mouseRay.getDirection() * 1200 ); 200 pawn->setTarget( 0 ); 201 if( this->getControllableEntity()->getTarget() != 0 ) 202 pawn->setTarget( 0 ); 201 203 } 202 204
Note: See TracChangeset
for help on using the changeset viewer.