Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8147 in orxonox.OLD for trunk/src/lib/network/synchronizeable.cc


Ignore:
Timestamp:
Jun 5, 2006, 12:09:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the network branche back here
merged with command:
svn merge -r8070:HEAD https://svn.orxonox.net/orxonox/branches/network .
no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/synchronizeable.cc

    r8068 r8147  
    108108
    109109  for ( SyncVarList::iterator it = syncVarList.begin(); it != syncVarList.end(); it++ )
     110  {
     111    //PRINTF(0)("SIZE = %d %s\n", (*it)->getSize(), (*it)->getName().c_str());
    110112    neededSize += (*it)->getSize();
     113  }
    111114
    112115  if ( !( neededSize <= maxLength ) )
     
    183186                    );
    184187   
    185     if ( ( hasPermission && (*it)->getPriority() >= priorityTH ) || sizeIter == stateFrom->sizeList.end() )
     188    if ( ( sizeIter != stateFrom->sizeList.end() && *sizeIter != (*it)->getSize() ) || ( hasPermission && (*it)->getPriority() >= priorityTH ) || sizeIter == stateFrom->sizeList.end() )
    186189    {
    187190      n = (*it)->writeToBuf( stateTo->data+i, stateTo->dataLength - i );
     
    209212  sentStates[userId].push_back( stateTo );
    210213 
    211   assert( i == neededSize );
     214  if ( i != neededSize )
     215  {
     216    PRINTF(0)("strange error: (%s) %d != %d\n", this->getClassName(), i, neededSize);
     217    assert(false);
     218  }
    212219
    213220  //write diff to data
Note: See TracChangeset for help on using the changeset viewer.