Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 12:27:03 AM (14 years ago)
Author:
landauf
Message:

removed some tabs and adjusted formatting in some fps related files

File:
1 edited

Legend:

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

    r7073 r7075  
    216216                {
    217217                    if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
    218                         {this->showOverlays();}
    219                        
    220                     if (this->getControllableEntity() &&  this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))\
    221                         {this->showOverlays();
    222                         this->hideArrows();}
     218                        this->showOverlays();
     219                    else if (this->getControllableEntity() &&  this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))
     220                    {
     221                        this->showOverlays();
     222                        this->hideArrows();
     223                    }
    223224
    224225                    this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2));
     
    378379                // Try to cast the user pointer
    379380                WorldEntity* wePtr = dynamic_cast<WorldEntity*>(Ogre::any_cast<OrxonoxClass*>(itr->movable->getUserAny()));
    380                
     381
    381382                // make sure we don't shoot ourselves
    382383                if( wePtr==myWe )
    383384                    continue;
    384                
     385
    385386                if (wePtr)
    386387                {
     
    592593        }
    593594    }
    594        
    595 
    596    
     595
     596
     597
    597598
    598599
Note: See TracChangeset for help on using the changeset viewer.