Changeset 3089 for code/trunk/src/orxonox/objects/controllers
- Timestamp:
- May 27, 2009, 4:11:31 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/map (added) merged: 2802,2812,2837-2838,2856,2913,2942,2956,2977,3082
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/controllers/HumanController.cc
r3073 r3089 36 36 #include "objects/gametypes/Gametype.h" 37 37 #include "objects/infos/PlayerInfo.h" 38 #include "overlays/map/Map.h" 38 39 39 40 namespace orxonox … … 93 94 void HumanController::rotateYaw(const Vector2& value) 94 95 { 96 //Hack to enable mouselook in map 97 if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() ) 98 { 99 Map::getSingletonPtr()->rotateYaw(value); 100 return; 101 } 95 102 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 96 103 HumanController::localController_s->controllableEntity_->rotateYaw(value); … … 99 106 void HumanController::rotatePitch(const Vector2& value) 100 107 { 108 //Hack to enable mouselook in map 109 if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() ) 110 { 111 Map::getSingletonPtr()->rotatePitch(value); 112 return; 113 } 101 114 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 102 115 HumanController::localController_s->controllableEntity_->rotatePitch(value); -
code/trunk/src/orxonox/objects/controllers/HumanController.h
r3073 r3089 78 78 } 79 79 80 //friend class, for mouselook 81 friend class Map; 82 80 83 private: 81 84 static HumanController* localController_s;
Note: See TracChangeset
for help on using the changeset viewer.