[Orxonox-commit 1561] r6279 - code/branches/presentation2/src/orxonox/controllers

scheusso at orxonox.net scheusso at orxonox.net
Wed Dec 9 10:43:17 CET 2009


Author: scheusso
Date: 2009-12-09 10:43:17 +0100 (Wed, 09 Dec 2009)
New Revision: 6279

Modified:
   code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
Log:
overlay fix in NHC


Modified: code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
===================================================================
--- code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc	2009-12-09 08:34:47 UTC (rev 6278)
+++ code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc	2009-12-09 09:43:17 UTC (rev 6279)
@@ -162,6 +162,8 @@
 
             if( this->controllableEntity_ && !this->controllableEntity_->isInMouseLook() )
             {
+                if (this->getControllableEntity() && this->getControllableEntity()->getIdentifier()->getName() == "SpaceShip")
+                    this->showOverlays();
                 this->updateTarget();
                 if ( !controlPaused_ ) {
                     this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5-overlaySize_/2));
@@ -175,6 +177,8 @@
                         hideArrows();
                 }
             }
+            else
+                this->hideOverlays();
 
             if ( this->acceleration_ > 0 )
             {




More information about the Orxonox-commit mailing list