Changeset 9533 in orxonox.OLD for branches/proxy/src
- Timestamp:
- Jul 27, 2006, 10:24:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9532 r9533 802 802 if ( ( SharedNetworkData::getInstance()->isMasterServer() || 803 803 SharedNetworkData::getInstance()->isProxyServerActive() && peer->second.isClient() ) && 804 sync.getUniqueID() <= SharedNetworkData::getInstance()->getMaxPlayer() + 1) // plus one to handle one client more than the max to redirect it 805 n = Converter::intToByteArray( SharedNetworkData::getInstance()->getHostID()*1000, buf + offset, UDP_PACKET_SIZE - offset ); 804 sync.getUniqueID() >= 1000 805 /*<= SharedNetworkData::getInstance()->getMaxPlayer() + 1*/) // plus one to handle one client more than the max to redirect it 806 n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset ); 806 807 else 807 808 n = Converter::intToByteArray( sync.getUniqueID(), buf + offset, UDP_PACKET_SIZE - offset );
Note: See TracChangeset
for help on using the changeset viewer.