Changeset 1748 for code/branches/network/src/orxonox
- Timestamp:
- Sep 9, 2008, 11:23:40 AM (16 years ago)
- Location:
- code/branches/network/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Model.cc
r1627 r1748 45 45 CreateFactory(Model); 46 46 47 /** 48 * 49 */ 47 50 Model::Model() 48 51 { 49 52 RegisterObject(Model); 50 53 registerAllVariables(); 54 if(this->isExactlyA(Class(Model))) 55 setObjectFrequency(1); 51 56 } 52 57 -
code/branches/network/src/orxonox/objects/SpaceShip.cc
r1742 r1748 166 166 if(network::Host::running()) 167 167 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); 169 170 myShip_=true; 171 } 170 172 else 171 173 this->setRadarObjectColour(this->getProjectileColour()); … … 360 362 if(myShip_){ 361 363 COUT(3) << "requesting focus for camera" << std::endl; 362 this->setBacksync(true);363 364 //CameraHandler::getInstance()->requestFocus(cam_); 364 365 if(this->isExactlyA(Class(SpaceShip))){ … … 466 467 } 467 468 468 projectile->set Backsync(true);469 projectile->setObjectMode(0x3); 469 470 this->timeToReload_ = this->reloadTime_; 470 471 }
Note: See TracChangeset
for help on using the changeset viewer.