Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2378


Ignore:
Timestamp:
Dec 10, 2008, 2:13:54 PM (16 years ago)
Author:
chpeter
Message:

process ack- solved set back of schedValue, watching targetsize from cut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/TrafficControl.cc

    r2371 r2378  
    141141      if(clientListPerm_[clientID].find((*itvec).objID) != clientListPerm_[clientID].end()) // check whether the obj already exists in our lists
    142142      {
    143         clientListPerm_[clientID][(*itvec).objID].objID = gamestateID;
     143        clientListPerm_[clientID][(*itvec).objID].objCurGS = gamestateID;
     144        clientListPerm_[clientID][(*itvec).objID].objValueSched = 0; //set scheduling value back
    144145      }
    145146      else
     
    239240    assert(!list->empty());
    240241    itvec = list->begin();
    241     for(itvec = list->begin(); itvec != list->end() && size<targetsize; itvec++)
     242    for(itvec = list->begin(); ( itvec != list->end() ) && ( size<targetsize ); itvec++)
    242243    {
    243244      assert( (*itvec).objSize < 1000);
    244       if ( size + (*itvec).objSize < targetsize )
     245      COUT(0) << "==targetsize==  " << targetsize << endl;
     246      if ( ( size + (*itvec).objSize ) < targetsize )
    245247      {
    246248        size += (*itvec).objSize;//objSize is given in bytes
Note: See TracChangeset for help on using the changeset viewer.