Changeset 1431 for code/branches/network/src/network/GameStateClient.cc
- Timestamp:
- May 26, 2008, 9:21:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateClient.cc
r1425 r1431 117 117 int GameStateClient::processGameState(){ 118 118 if(tempGameState_==NULL) 119 return GAMESTATEID_INITIAL;119 return 0; 120 120 int id=tempGameState_->id; 121 121 bool b = saveShipCache(); … … 176 176 orxonox::Identifier* id = ID((unsigned int)sync.classID); 177 177 if(!id){ 178 COUT( 4) << "We could not identify a new object; classid: " << sync.classID<< std::endl;179 return false; 178 COUT(3) << "We could not identify a new object; classid: " << sync.classID << " objectID: " << sync.objectID << " size: " << sync.length << std::endl; 179 return false; // most probably the gamestate is corrupted 180 180 } 181 181 Synchronisable *no = dynamic_cast<Synchronisable *>(id->fabricate()); … … 278 278 int of=0; // pointers offset 279 279 int dest_length=0; 280 if(old->size>=diff->size)280 /*if(old->size>=diff->size) 281 281 dest_length=old->size; 282 else 282 else*/ 283 283 dest_length=diff->size; 284 284 // unsigned char *dp = (unsigned char *)malloc(dest_length*sizeof(unsigned char)); … … 295 295 of++; 296 296 } 297 } else{297 } /*else{ 298 298 while(of<dest_length){ 299 299 *(dp+of)=*(ap+of)^n; 300 300 of++; 301 301 } 302 } 302 }*/ 303 303 } 304 304 // should be finished now
Note: See TracChangeset
for help on using the changeset viewer.