Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7806 in orxonox.OLD for branches


Ignore:
Timestamp:
May 24, 2006, 2:51:31 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r7804 r7806  
    423423      n = sync.getStateDiff( peer->second.userId, buf + offset, UDP_PACKET_SIZE-offset, currentState, peer->second.lastAckedState, -1000 );
    424424      offset += n;
     425      //PRINTF(0)("GGGGGEEEEEEETTTTTTTT: %d\n", n);
    425426     
    426427      assert( Converter::intToByteArray( n, buf + offset - n - INTSIZE, INTSIZE ) == INTSIZE );
     
    477478    while ( 0 < (packetLength = peer->second.socket->readPacket( buf, UDP_PACKET_SIZE )) )
    478479    {
    479       PRINTF(0)("offset: %d\n", offset);
    480480      if ( packetLength < 4*INTSIZE )
    481481      {
     
    588588        }
    589589
    590         offset += sync->setStateDiff( peer->second.userId, buf+offset, syncDataLength, state, fromState );
     590        int n = sync->setStateDiff( peer->second.userId, buf+offset, syncDataLength, state, fromState );
     591        offset += n;
     592        //PRINTF(0)("SSSSSEEEEETTTTT: %d\n", n);
    591593      }
    592594     
Note: See TracChangeset for help on using the changeset viewer.