Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2008, 11:23:40 AM (16 years ago)
Author:
scheusso
Message:

backsync should now work correctly (server can move again ;) )

File:
1 edited

Legend:

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

    r1742 r1748  
    166166        if(network::Host::running())
    167167          COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl;
    168         if(network::Host::running() && objectID == network::Host::getShipID())
     168        if(network::Host::running() && objectID == network::Host::getShipID()){
     169          setObjectMode(0x3);
    169170          myShip_=true;
     171        }
    170172        else
    171173          this->setRadarObjectColour(this->getProjectileColour());
     
    360362      if(myShip_){
    361363        COUT(3) << "requesting focus for camera" << std::endl;
    362         this->setBacksync(true);
    363364        //CameraHandler::getInstance()->requestFocus(cam_);
    364365        if(this->isExactlyA(Class(SpaceShip))){
     
    466467            }
    467468
    468             projectile->setBacksync(true);
     469            projectile->setObjectMode(0x3);
    469470            this->timeToReload_ = this->reloadTime_;
    470471        }
Note: See TracChangeset for help on using the changeset viewer.