Changeset 2378 for code/branches/presentation
- Timestamp:
- Dec 10, 2008, 2:13:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/TrafficControl.cc
r2371 r2378 141 141 if(clientListPerm_[clientID].find((*itvec).objID) != clientListPerm_[clientID].end()) // check whether the obj already exists in our lists 142 142 { 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 144 145 } 145 146 else … … 239 240 assert(!list->empty()); 240 241 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++) 242 243 { 243 244 assert( (*itvec).objSize < 1000); 244 if ( size + (*itvec).objSize < targetsize ) 245 COUT(0) << "==targetsize== " << targetsize << endl; 246 if ( ( size + (*itvec).objSize ) < targetsize ) 245 247 { 246 248 size += (*itvec).objSize;//objSize is given in bytes
Note: See TracChangeset
for help on using the changeset viewer.