- Timestamp:
- Apr 23, 2011, 10:28:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network6/src/libraries/network/GamestateManager.cc
r7882 r8315 287 287 // } 288 288 289 assert(curid==GAMESTATEID_INITIAL || curid<=gamestateID); 290 COUT(5) << "acking gamestate " << gamestateID << " for peerID: " << peerID << " curid: " << curid << std::endl; 289 // assert(curid==GAMESTATEID_INITIAL || curid<=gamestateID); // this line is commented out because acknowledgements are unreliable and may arrive in distorted order 290 if( gamestateID <= curid ) 291 return true; 292 COUT(4) << "acking gamestate " << gamestateID << " for peerID: " << peerID << " curid: " << curid << std::endl; 291 293 std::map<uint32_t, packet::Gamestate*>::iterator it2; 292 294 for( it2=it->second.gamestates.begin(); it2!=it->second.gamestates.end(); )
Note: See TracChangeset
for help on using the changeset viewer.