Changeset 7752 in orxonox.OLD for branches/network
- Timestamp:
- May 21, 2006, 4:36:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r7748 r7752 425 425 assert( peer->second.socket->writePacket( buf, offset ) ); 426 426 peer->second.sentStateTicks[currentState] = SDL_GetTicks(); 427 PRINTF(0)("send packet: %d userId = %d\n", offset, peer->second.userId);427 NETPRINTF(n)("send packet: %d userId = %d\n", offset, peer->second.userId); 428 428 } 429 429 } … … 465 465 assert( Converter::byteArrayToInt( buf + 2*INTSIZE, &fromState ) == INTSIZE ); 466 466 assert( Converter::byteArrayToInt( buf + 3*INTSIZE, &ackedState ) == INTSIZE ); 467 PRINTF(0)("ackedstate: %d\n", ackedState);467 NETPRINTF(n)("ackedstate: %d\n", ackedState); 468 468 offset = 4*INTSIZE; 469 469 470 PRINTF(0)("got packet: %d, %d\n", length, packetLength);470 NETPRINTF(n)("got packet: %d, %d\n", length, packetLength); 471 471 472 472 //if this is an old state drop it … … 585 585 peer->second.ping /= peer->second.ackDelay.size(); 586 586 587 NETPRINTF( 0)("PING: user: %d ping: %d\n", peer->second.userId, peer->second.ping );587 NETPRINTF(n)("PING: user: %d ping: %d\n", peer->second.userId, peer->second.ping ); 588 588 589 589 peer->second.lastAckedState = ackedState;
Note: See TracChangeset
for help on using the changeset viewer.