Changeset 1767 for code/trunk/src/orxonox
- Timestamp:
- Sep 11, 2008, 2:31:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/SpaceShip.cc
r1758 r1767 77 77 for(it = ObjectList<SpaceShip>::begin(); it; ++it){ 78 78 assert(it->isA(Class(SpaceShip))); 79 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->objectID) ) 79 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->objectID) ){ 80 // COUT(1) << "^^^^^^^^^^ myShip_:" << *it << " classname: " << (*it)->getIdentifier()->getName() << " objectid: " << (*it)->objectID << std::endl; 80 81 return *it; 82 } 81 83 } 82 return 0;83 84 return 0; 84 85 } … … 167 168 if(!myShip_){ 168 169 if(network::Host::running()) 169 COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl;170 // COUT(3) << "this id: " << this->objectID << " myShipID: " << network::Host::getShipID() << std::endl; 170 171 if(network::Host::running() && objectID == network::Host::getShipID()){ 171 172 if(!network::Host::isServer())
Note: See TracChangeset
for help on using the changeset viewer.