Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 7:49:31 PM (14 years ago)
Author:
rgrieder
Message:

Removed a load of warnings for VS 2005 and possibly VS 2008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc

    r7163 r7183  
    171171
    172172                Radian pitch = this->cameraPositionRootNode_->getOrientation().getPitch();
    173                 if (pitch < Radian(1.5707) && pitch > Radian(-1.5707))
     173                if (pitch < Radian(1.5707f) && pitch > Radian(-1.5707f))
    174174                {
    175175                    this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed()));
    176176                }
    177                 else if (pitch < Radian(-1.5707))
     177                else if (pitch < Radian(-1.5707f))
    178178                {
    179                     if (this->pitch_ > 0.0)
     179                    if (this->pitch_ > 0.0f)
    180180                        this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed()));
    181                     else if (pitch < Radian(-1.571))
    182                         this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796));
     181                    else if (pitch < Radian(-1.571f))
     182                        this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796f));
    183183                }
    184                 else if (pitch > Radian(1.5707))
     184                else if (pitch > Radian(1.5707f))
    185185                {
    186                     if (this->pitch_ < 0.0)
     186                    if (this->pitch_ < 0.0f)
    187187                        this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed()));
    188                     else if (pitch > Radian(1.571))
    189                         this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796));
     188                    else if (pitch > Radian(1.571f))
     189                        this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796f));
    190190                }
    191191                this->weaponNode_->setOrientation(this->cameraPositionRootNode_->getOrientation());
Note: See TracChangeset for help on using the changeset viewer.