Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2011, 9:19:52 AM (13 years ago)
Author:
scheusso
Message:

-fixed a memory leak (thx reto)
-some OrxVerify messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/GamestateManager.cc

    r8373 r8394  
    9494    assert(gs);
    9595    std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.find(clientID);
    96     if(it!=gamestateQueue.end()){
     96    if(it!=gamestateQueue.end())
     97    {
    9798      // delete obsolete gamestate
    9899      delete it->second;
     
    108109    std::map<unsigned int, packet::Gamestate*>::iterator it;
    109110    // 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");
    112114      sendAck( it->second->getID(), it->second->getPeerID() );
    113115      delete it->second;
     
    362364    if(gs->isCompressed())
    363365    {
    364        OrxVerify(gs->decompressData(), "");
     366       OrxVerify(gs->decompressData(), "ERROR: could not decompress Gamestate");
    365367    }
    366368    assert(!gs->isDiffed());
Note: See TracChangeset for help on using the changeset viewer.