Changeset 2942 for code/branches/map/src/orxonox/objects/controllers
- Timestamp:
- Apr 30, 2009, 2:12:57 PM (16 years ago)
- Location:
- code/branches/map/src/orxonox/objects/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/map/src/orxonox/objects/controllers/HumanController.cc
r2662 r2942 35 35 #include "objects/worldentities/pawns/Pawn.h" 36 36 #include "objects/gametypes/Gametype.h" 37 #include "overlays/map/Map.h" 37 38 38 39 namespace orxonox … … 92 93 void HumanController::rotateYaw(const Vector2& value) 93 94 { 95 //Hack to enable mouselook in map 96 if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() ) 97 { 98 Map::getSingletonPtr()->rotateYaw(value); 99 return; 100 } 94 101 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 95 102 HumanController::localController_s->controllableEntity_->rotateYaw(value); … … 98 105 void HumanController::rotatePitch(const Vector2& value) 99 106 { 107 //Hack to enable mouselook in map 108 if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() ) 109 { 110 Map::getSingletonPtr()->rotatePitch(value); 111 return; 112 } 100 113 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 101 114 HumanController::localController_s->controllableEntity_->rotatePitch(value); -
code/branches/map/src/orxonox/objects/controllers/HumanController.h
r2662 r2942 66 66 static void killBots(unsigned int amount = 0); 67 67 68 //friend class, for mouselook 69 friend class Map; 70 68 71 private: 69 72 static HumanController* localController_s;
Note: See TracChangeset
for help on using the changeset viewer.