Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2011, 4:33:48 PM (13 years ago)
Author:
dafrick
Message:

Some cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/src/modules/docking/DockingController.cc

    r8544 r8560  
    9393        if (docking)
    9494        {
    95             COUT(0) << "DockingController::takeControl Taking over control." << std::endl;
     95            COUT(4) << "DockingController::takeControl Taking over control." << std::endl;
    9696
    9797            entity->setDestroyWhenPlayerLeft(false);
     
    104104    void DockingController::positionReached()
    105105    {
    106         COUT(0) << "DockingController::positionReached() called." << std::endl;
     106        COUT(4) << "DockingController::positionReached() called." << std::endl;
    107107
    108108        assert(this->player);
     
    110110
    111111        // stop spaceship
    112         dock->attach(entity);
     112        entity->setPosition(dock->getWorldPosition());
    113113        entity->setVelocity(0, 0, 0);
    114         entity->setOrientation(dock->getOrientation());
     114        entity->setOrientation(dock->getWorldOrientation());
    115115
    116116        // give control back to player
Note: See TracChangeset for help on using the changeset viewer.