Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9553 in orxonox.OLD for branches/proxy/src/lib/network/proxy


Ignore:
Timestamp:
Jul 28, 2006, 11:58:26 AM (18 years ago)
Author:
patrick
Message:

found a bug in the debug output and switched implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/proxy/proxy_control.cc

    r9543 r9553  
    7979void ProxyControl::signalNewClient(int userId)
    8080{
    81   PRINTF(0)("Signaling new Client: %i\n");
     81  PRINTF(0)("Signaling new Client: %i\n", userId);
    8282  // make sure we are a proxy server
    8383  assert(SharedNetworkData::getInstance()->isProxyServerActive());
    8484
    85   byte * data = new byte[INTSIZE];
     85  byte data[INTSIZE];
    8686
    8787  assert( Converter::intToByteArray( userId, data + INTSIZE, INTSIZE ) == INTSIZE );
     
    114114  assert( Converter::byteArrayToInt( data, &userId) == INTSIZE );
    115115
    116   PRINTF(0)("Got Signal: new player arrived with userId: %i\n", userId);
     116  PRINTF(0)("Got Signal: from %i new player arrived with userId: %i\n", senderId, userId);
    117117  // part for the master server
    118118  if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset for help on using the changeset viewer.