Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7803 in orxonox.OLD for branches/network


Ignore:
Timestamp:
May 24, 2006, 1:58:44 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_stream.cc

    r7802 r7803  
    391391    {
    392392      int oldOffset = offset;
    393      
    394393      Synchronizeable & sync = **it;
    395394     
     
    437436      {
    438437        NETPRINTF(n)("REMOVE ZERO DIFF: %s (%d)\n", sync.getClassName(), sync.getUniqueID());
    439         offset = offset - n - 2*INTSIZE;
    440         assert( offset == oldOffset );
     438        offset = oldOffset;
    441439      }
    442440     
     
    505503      }
    506504     
    507       while ( offset < length )
    508       {
     505      while ( offset + 2*INTSIZE < length )
     506      {
     507        NETPRINTF(n)("%d\n", length - offset);
    509508        assert( Converter::byteArrayToInt( buf + offset, &uniqueId ) == INTSIZE );
    510509        offset += INTSIZE;
Note: See TracChangeset for help on using the changeset viewer.