- Timestamp:
- Jul 21, 2006, 12:51:53 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/netdefs.h
r9347 r9384 33 33 34 34 35 //!< maximal connectinons for the server 36 #define NET_MAX_CONNECTIONS 100 35 37 36 38 37 //!< the amount of slots used before a proxy server is activated -
branches/proxy/src/lib/network/shared_network_data.cc
r9375 r9384 37 37 this->defaultSyncStream = NULL; 38 38 39 if( State::isOnline())40 this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2;41 else39 // if( State::isOnline()) 40 // this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2; 41 // else 42 42 this->newUniqueID = NET_MAX_CONNECTIONS + 2; 43 43 this->nodeType = NET_CLIENT; -
branches/proxy/src/lib/network/shared_network_data.h
r9347 r9384 11 11 #include "proxy/proxy_settings.h" 12 12 13 //!< maximal connectinons for the server 14 #define NET_MAX_CONNECTIONS 100 13 15 14 16 class NetworkStream; … … 38 40 39 41 /** @returns the maximum number of players for this server */ 40 inline int getMaxPlayer() { return ProxySettings::getInstance()->getMaxPlayer(); }42 inline int getMaxPlayer() { return /*ProxySettings::getInstance()->getMaxPlayer()*/NET_MAX_CONNECTIONS; } 41 43 42 44 /** @returns the hostID of the node */
Note: See TracChangeset
for help on using the changeset viewer.