Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6365 for code/branches


Ignore:
Timestamp:
Dec 16, 2009, 9:43:36 PM (15 years ago)
Author:
rgrieder
Message:

Fixed segfault (when hitting tab in main menu) and second mode problem in NewHumanController.
The mode fix is temporary because it triggers another minor bug with the game pad.

File:
1 edited

Legend:

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

    r6360 r6365  
    258258
    259259        // Reset pitch and yaw rates
    260         this->currentPitch_ = 0;
    261         this->currentYaw_ = 0;
     260        // TODO: Reactivate this to fix the game pad problem with 0 input
     261        //this->currentPitch_ = 0;
     262        //this->currentYaw_ = 0;
    262263
    263264        HumanController::tick(dt);
     
    480481    void NewHumanController::changeMode()
    481482    {
    482         if (NewHumanController::localController_s && NewHumanController::localController_s->controlMode_ == 0)
    483         {
     483        if (NewHumanController::localController_s)
     484        {
     485            if (NewHumanController::localController_s->controlMode_ == 0)
     486            {
    484487                NewHumanController::localController_s->controlMode_ = 1;
    485488                NewHumanController::localController_s->hideArrows();
    486         }
    487         else
    488             NewHumanController::localController_s->controlMode_ = 0;
     489            }
     490            else
     491                NewHumanController::localController_s->controlMode_ = 0;
     492        }
    489493    }
    490494
Note: See TracChangeset for help on using the changeset viewer.