Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2010, 4:17:20 PM (15 years ago)
Author:
freicy
Message:

by cyrill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fps/src/orxonox/controllers/NewHumanController.cc

    r6866 r6883  
    210210                if (!controlPaused_ )
    211211                {
    212                     if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")) || this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))))
    213                         this->showOverlays();
     212                    if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
     213                        {this->showOverlays();}
     214                       
     215                    if (this->getControllableEntity() &&  this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))\
     216                        {this->showOverlays();
     217                        this->hideArrows();}
    214218
    215219                    this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2));
     
    460464        if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
    461465        {
     466           
    462467            this->showOverlays_ = true;
    463468            if (!this->controlPaused_)
Note: See TracChangeset for help on using the changeset viewer.