Changeset 8394 for code/trunk/src/libraries/network/GamestateManager.cc
- Timestamp:
- May 3, 2011, 9:19:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/network/GamestateManager.cc
r8373 r8394 94 94 assert(gs); 95 95 std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.find(clientID); 96 if(it!=gamestateQueue.end()){ 96 if(it!=gamestateQueue.end()) 97 { 97 98 // delete obsolete gamestate 98 99 delete it->second; … … 108 109 std::map<unsigned int, packet::Gamestate*>::iterator it; 109 110 // now push only the most recent gamestates we received (ignore obsolete ones) 110 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++){ 111 OrxVerify(processGamestate(it->second), ""); 111 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++) 112 { 113 OrxVerify(processGamestate(it->second), "ERROR: could not process Gamestate"); 112 114 sendAck( it->second->getID(), it->second->getPeerID() ); 113 115 delete it->second; … … 362 364 if(gs->isCompressed()) 363 365 { 364 OrxVerify(gs->decompressData(), " ");366 OrxVerify(gs->decompressData(), "ERROR: could not decompress Gamestate"); 365 367 } 366 368 assert(!gs->isDiffed());
Note: See TracChangeset
for help on using the changeset viewer.