Changeset 7591 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.cc
- Timestamp:
- May 11, 2006, 8:05:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.cc
r7578 r7591 126 126 while ( it != sentStates[userId].end() && (*it)->stateId < fromStateId ) 127 127 it++; 128 ///FIXED: altered begin() -> end() 129 if ( it != sentStates[userId]. end() )128 129 if ( it != sentStates[userId].begin() ) 130 130 { 131 131 for ( StateHistory::iterator it2 = sentStates[userId].begin(); it2 != it; it2++ ) … … 209 209 210 210 sentStates[userId].push_back( stateTo ); 211 212 assert( i == neededSize ); 211 213 212 214 //write diff to data … … 229 231 * @param stateId id of current state 230 232 * @param fromStateId id of the base state id 231 * @return true on success233 * @return number bytes read 232 234 * @todo check for permissions 233 235 */ 234 boolSynchronizeable::setStateDiff( int userId, byte* data, int length, int stateId, int fromStateId )236 int Synchronizeable::setStateDiff( int userId, byte* data, int length, int stateId, int fromStateId ) 235 237 { 236 238 //make sure this user has his history … … 309 311 this->varChangeHandler( changes ); 310 312 311 return length;313 return i; 312 314 } 313 315
Note: See TracChangeset
for help on using the changeset viewer.