Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2006, 4:29:59 PM (19 years ago)
Author:
patrick
Message:

player number model switched

File:
1 edited

Legend:

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

    r9309 r9327  
    364364
    365365    // check if there are too many clients connected (DEPRECATED: new: the masterserver sends a list of proxy servers)
    366     if ( clientId > NET_MAX_CONNECTIONS )
     366    if ( clientId > SharedNetworkData::getInstance()->getMaxPlayer() )
    367367    {
    368368//       peers[clientId].handshake->setRedirect(true);
     
    449449               (*it)->getUniqueID(), (*it)->beSynchronized());
    450450  }
    451   PRINT(0)(" Maximal Connections: %i\n", NET_MAX_CONNECTIONS );
     451  PRINT(0)(" Maximal Connections: %i\n", SharedNetworkData::getInstance()->getMaxPlayer() );
    452452
    453453}
     
    620620
    621621      // server fakes uniqueid == 0 for handshake
    622       if ( this->isMasterServer() && sync.getUniqueID() < NET_MAX_CONNECTIONS - 1 )
     622      if ( this->isMasterServer() && sync.getUniqueID() < SharedNetworkData::getInstance()->getMaxPlayer() - 1 )
    623623        n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset );
    624624      else
Note: See TracChangeset for help on using the changeset viewer.