Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 2:09:33 PM (16 years ago)
Author:
scheusso
Message:

reverted some changes from previous version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/network/GameStateClient.cc

    r1355 r1361  
    4747    COUT(5) << "this: " << this << std::endl;
    4848    last_diff_=0;
    49     last_gamestate_=GAMESTATEID_INITIAL-1;
    5049  }
    5150
     
    5756    printGameStateMap();
    5857    GameState *gs, *reference;
    59     /*if(compstate->id<last_gamestate_){
    60       // network packets got messed up
    61       COUT(3) << "received an obsolete gamestate" << std::endl;
    62       return false;
    63     }*/
    6458    if(compstate->diffed && compstate->base_id!=GAMESTATEID_INITIAL){
    6559      std::map<int, GameState*>::iterator it = gameStateMap.find(compstate->base_id);
     
    8377        COUT(4) << "adding decoded gs with id: " << gs->id << " diffed from: " << gs->base_id << std::endl;
    8478        last_diff_=gs->base_id;
    85         //last_gamestate_=gs->id;
    8679        return true;
    8780      }else{
     
    156149          Synchronisable *no = dynamic_cast<Synchronisable *>(id->fabricate());
    157150          COUT(4) << "loadsnapshot: classid: " << sync.classID << " objectID: " << sync.objectID << " length: " << sync.length << std::endl;
    158           if(!no){
    159             COUT(2) << "coudl not frabricate classid: " << sync.classID << " objectID: " << sync.objectID << " identifier: " << id << std::endl;
    160             break;
    161           }
    162151          no->objectID=sync.objectID;
    163152          no->classID=sync.classID;
Note: See TracChangeset for help on using the changeset viewer.