Changeset 1361 for code/branches/merge/src/network/GameStateManager.cc
- Timestamp:
- May 22, 2008, 2:09:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/network/GameStateManager.cc
r1355 r1361 221 221 orxonox::Iterator<Synchronisable> it=orxonox::ObjectList<Synchronisable>::start(); 222 222 syncData sync; 223 /*ClientInformation *client = head_->findClient(clientID);224 if(client)225 if(client->getPartialGamestateID()>state->id){226 COUT(3) << "we received an obsolete partial gamestate" << std::endl;227 return false;228 }229 else;*/230 //what should we do now ??231 223 // loop as long as we have some data ;) 232 224 while(data < state->data+state->size){ … … 276 268 ++it; 277 269 } 278 //client->setPartialGamestateID(state->id);270 279 271 return true; 280 272 } … … 436 428 return; 437 429 int curid = temp->getGamestateID(); 438 if(curid > gamestateID)439 // the network packets got messed up440 return;441 430 COUT(4) << "acking gamestate " << gamestateID << " for clientid: " << clientID << " curid: " << curid << std::endl; 442 431 // decrease usage of gamestate and save it
Note: See TracChangeset
for help on using the changeset viewer.