Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/network/shared_network_data.cc
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/shared_network_data.cc
r9388 r9396 34 34 this->setClassID(CL_SHARED_NETWORK_DATA, "SharedNetworkData"); 35 35 36 this->nodeType = NET_CLIENT; 36 37 this->hostID = -1; 37 38 this->defaultSyncStream = NULL; 38 39 39 // if( State::isOnline()) 40 this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2; 41 // else 42 // this->newUniqueID = NET_MAX_CONNECTIONS + 2; 43 this->nodeType = NET_CLIENT; 40 // setUniqueID( maxCon+2 ) because we need one id for every handshake 41 // and one for handshake to reject client maxCon+1 42 this->newUniqueID = NetworkSettings::getInstance()->getMaxPlayer() + 2; 44 43 } 45 44
Note: See TracChangeset
for help on using the changeset viewer.