Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2010, 12:40:49 PM (14 years ago)
Author:
freicy
Message:

commit by cyrill

File:
1 edited

Legend:

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

    r6502 r6866  
    210210                if (!controlPaused_ )
    211211                {
    212                     if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket"))))
     212                    if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")) || this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))))
    213213                        this->showOverlays();
    214214
     
    425425            HumanController::yaw(value);
    426426
    427         this->currentYaw_ = value.x;
     427        if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))
     428            this->currentYaw_ = value.x;
    428429    }
    429430
     
    434435            HumanController::pitch(value);
    435436
    436         this->currentPitch_ = value.x;
     437        if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))
     438            this->currentPitch_ = value.x;
    437439    }
    438440
Note: See TracChangeset for help on using the changeset viewer.