Changeset 9290 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 14, 2006, 12:19:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9287 r9290 337 337 338 338 // check if there are too many clients connected 339 if ( clientId > MAX_CONNECTIONS )339 if ( clientId > NET_MAX_CONNECTIONS ) 340 340 { 341 341 peers[clientId].handshake->doReject( "too many connections" ); … … 420 420 (*it)->getUniqueID(), (*it)->beSynchronized()); 421 421 } 422 PRINT(0)(" Maximal Connections: %i\n", MAX_CONNECTIONS );422 PRINT(0)(" Maximal Connections: %i\n", NET_MAX_CONNECTIONS ); 423 423 424 424 } … … 568 568 569 569 // server fakes uniqueid == 0 for handshake 570 if ( this->isMasterServer() && sync.getUniqueID() < MAX_CONNECTIONS - 1 )570 if ( this->isMasterServer() && sync.getUniqueID() < NET_MAX_CONNECTIONS - 1 ) 571 571 n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset ); 572 572 else
Note: See TracChangeset
for help on using the changeset viewer.