Changeset 9597 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 29, 2006, 1:58:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9595 r9597 259 259 Handshake* hs = new Handshake(this->pInfo->nodeType); 260 260 // fake the unique id 261 hs->setUniqueID( NET_UID_HANDSHAKE);261 hs->setUniqueID( userId); 262 262 assert( this->peers[userId].handshake == NULL ); 263 263 this->peers[userId].handshake = hs; … … 993 993 { 994 994 // client thinks his handshake has a special id: hostId * 1000 (host id of this server) 995 if ( (*it)->getUniqueID() == uniqueId || 996 ( uniqueId == 0 && (*it)->getUniqueID() == peer->second.userId ) ) 995 if ( (*it)->getUniqueID() == uniqueId || // so this client exists already go to sync work 996 ( uniqueId == 0 && (*it)->getUniqueID() == peer->second.userId ) ) // so this is a Handshake! 997 997 { 998 998 sync = *it;
Note: See TracChangeset
for help on using the changeset viewer.