Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 7, 2008, 4:33:09 PM (16 years ago)
Author:
scheusso
Message:

another fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/objects/SpaceShip.cc

    r1730 r1732  
    7676          return *it;
    7777      }
    78       return NULL;
     78      return 0;
    7979    }
    8080
     
    158158    bool SpaceShip::create(){
    159159      if(!myShip_){
     160        if(network::Host::running())
     161          COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl;
    160162        if(network::Host::running() && objectID == network::Host::getShipID())
    161163          myShip_=true;
     
    163165          HUD::getSingleton().addRadarObject(this, this->getProjectileColour());
    164166      }
    165       if(Model::create())
    166         this->init();
    167       else
    168         return false;
     167      assert(Model::create());
     168      this->init();
    169169      return true;
    170170    }
     
    287287
    288288    void SpaceShip::getFocus(){
    289       COUT(4) << "requesting focus" << std::endl;
     289      COUT(3) << "requesting focus" << std::endl;
    290290      //if(!network::Host::running() || network::Host::getShipID()==objectID)
    291291      if(myShip_)
     
    301301//       COUT(4) << "begin camera creation" << std::endl;
    302302      this->camNode_ = this->getNode()->createChildSceneNode(camName_);
    303       COUT(4) << "position: (this)" << this->getNode()->getPosition() << std::endl;
     303      COUT(3) << "position: (this)" << this->getNode()->getPosition() << std::endl;
    304304      this->camNode_->setPosition(Vector3(-25,0,5));
    305305//      Quaternion q1 = Quaternion(Radian(Degree(90)),Vector3(0,-1,0));
Note: See TracChangeset for help on using the changeset viewer.