Changeset 9327 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 18, 2006, 4:29:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9309 r9327 364 364 365 365 // 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() ) 367 367 { 368 368 // peers[clientId].handshake->setRedirect(true); … … 449 449 (*it)->getUniqueID(), (*it)->beSynchronized()); 450 450 } 451 PRINT(0)(" Maximal Connections: %i\n", NET_MAX_CONNECTIONS);451 PRINT(0)(" Maximal Connections: %i\n", SharedNetworkData::getInstance()->getMaxPlayer() ); 452 452 453 453 } … … 620 620 621 621 // 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 ) 623 623 n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset ); 624 624 else
Note: See TracChangeset
for help on using the changeset viewer.