Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2008, 5:06:24 PM (16 years ago)
Author:
scheusso
Message:

sync frequencies do work now

File:
1 edited

Legend:

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

    r1763 r1769  
    157157    int curid = temp->getGamestateID();
    158158   
    159     if(gamestateID == GAMESTATEID_INITIAL){
     159    if(gamestateID == 0){
    160160      temp->setGamestateID(GAMESTATEID_INITIAL);
    161161      if(curid!=GAMESTATEID_INITIAL){
     
    163163        --(gamestateUsed.find(curid)->second);
    164164      }
    165       return false;
    166     }
    167     if(curid > gamestateID)
     165      return true;
     166    }
     167    //if(curid > gamestateID)
     168    assert(curid<gamestateID);
    168169      // the network packets got messed up
    169       return true;
     170      //return true;
    170171    COUT(4) << "acking gamestate " << gamestateID << " for clientid: " << clientID << " curid: " << curid << std::endl;
    171172    // decrease usage of gamestate and save it
Note: See TracChangeset for help on using the changeset viewer.