- Timestamp:
- Jul 24, 2006, 12:00:47 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9397 r9399 719 719 720 720 // server fakes uniqueid == 0 for handshake 721 if ( ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer() ) && sync.getUniqueID() < SharedNetworkData::getInstance()->getMaxPlayer() - 1 ) 721 if ( ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer() ) && 722 sync.getUniqueID() < SharedNetworkData::getInstance()->getMaxPlayer() - 1 ) 722 723 n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset ); 723 724 else … … 865 866 for ( SynchronizeableList::iterator it = synchronizeables.begin(); it != synchronizeables.end(); it++ ) 866 867 { 867 //client thinks his handshake has id 0!!!!!868 // client thinks his handshake has id 0!!!!! 868 869 if ( (*it)->getUniqueID() == uniqueId || ( uniqueId == 0 && (*it)->getUniqueID() == peer->second.userId ) ) 869 870 { -
branches/proxy/src/lib/network/proxy/network_settings.cc
r9398 r9399 88 88 89 89 // set the new unique id offset 90 // setUniqueID( maxCon+2 ) because we need one id for every handshake 91 // and one for handshake to reject client maxCon+1 90 92 SharedNetworkData::getInstance()->setNewUniqueID( this->maxPlayer + 2); 91 93 }
Note: See TracChangeset
for help on using the changeset viewer.