Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7854 in orxonox.OLD


Ignore:
Timestamp:
May 25, 2006, 2:29:58 PM (18 years ago)
Author:
rennerc
Message:

added assert

File:
1 edited

Legend:

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

    r7613 r7854  
    251251    if ( userId >= userList.size() )
    252252    {
     253     
     254      // first packet of client has size 0. else it is an old one or the first packet was lost
     255      assert( packet->len == 0 );
     256     
    253257      newConn++;
    254258      isNewConnection = true;
     
    271275   
    272276    //add new packet to packetbuffer
     277
    273278    NetworkPacket networkPacket;
    274279    networkPacket.length = packet->len;
     
    287292    memcpy( networkPacket.data, packet->data, packet->len );
    288293    packetBuffer[userId].push_back( networkPacket );
     294
    289295  }
    290296 
Note: See TracChangeset for help on using the changeset viewer.