Changeset 1758
- Timestamp:
- Sep 10, 2008, 11:09:43 AM (16 years ago)
- Location:
- code/trunk/src
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/GamestateClient.cc
r1751 r1758 131 131 132 132 bool GamestateClient::saveShipCache(){ 133 if(myShip_==NULL) 133 if(myShip_==NULL){ 134 134 myShip_ = orxonox::SpaceShip::getLocalShip(); 135 if(!myShip_) 136 return false; 137 } 135 138 if(myShip_){ 136 139 // unsigned char *data = new unsigned char[myShip_->getSize()]; -
code/trunk/src/network/Synchronisable.cc
r1755 r1758 98 98 classID = *(unsigned int*)(mem+2*sizeof(unsigned int)); 99 99 100 if(size==3*sizeof(unsigned int)) //not our turn, dont do anything 100 if(size==3*sizeof(unsigned int)){ //not our turn, dont do anything 101 mem+=3*sizeof(unsigned int); 101 102 return true; 103 } 102 104 103 105 orxonox::Identifier* id = GetIdentifier(classID); -
code/trunk/src/network/packet/Packet.cc
r1751 r1758 30 30 #include <enet/enet.h> 31 31 #include <boost/bind.hpp> 32 #include <assert.h> 32 33 33 34 #include "Packet.h" -
code/trunk/src/orxonox/objects/SpaceShip.cc
r1755 r1758 76 76 ObjectList<SpaceShip>::iterator it; 77 77 for(it = ObjectList<SpaceShip>::begin(); it; ++it){ 78 if( (it)->myShip_ ) 78 assert(it->isA(Class(SpaceShip))); 79 if( (it)->myShip_ || (network::Host::running() && network::Host::getShipID()==(it)->objectID) ) 79 80 return *it; 80 81 } 81 assert(0);82 return 0; 82 83 return 0; 83 84 }
Note: See TracChangeset
for help on using the changeset viewer.