Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8315 for code


Ignore:
Timestamp:
Apr 23, 2011, 10:28:14 PM (14 years ago)
Author:
scheusso
Message:

fixing an assertion

File:
1 edited

Legend:

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

    r7882 r8315  
    287287//     }
    288288
    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;
     292COUT(4) << "acking gamestate " << gamestateID << " for peerID: " << peerID << " curid: " << curid << std::endl;
    291293    std::map<uint32_t, packet::Gamestate*>::iterator it2;
    292294    for( it2=it->second.gamestates.begin(); it2!=it->second.gamestates.end(); )
Note: See TracChangeset for help on using the changeset viewer.