Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2006, 11:43:27 PM (18 years ago)
Author:
patrick
Message:

new settings init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/proxy/network_settings.cc

    r9397 r9398  
    1717
    1818#include "network_settings.h"
     19
    1920#include "netdefs.h"
     21#include "shared_network_data.h"
    2022
    2123#include "loading/resource_manager.h"
     
    3840  // suggest a good standard max players value
    3941  this->maxPlayer = 10;
     42
     43  this->loadData();
    4044}
    4145
     
    8286
    8387  this->loadNetworkSettings( root);
     88
     89  // set the new unique id offset
     90  SharedNetworkData::getInstance()->setNewUniqueID( this->maxPlayer + 2);
    8491}
    8592
     
    120127}
    121128
     129
    122130/**
    123131 * sets the proxy address to
     
    126134void NetworkSettings::setProxyAddr(const std::string& proxyAddr)
    127135{
     136
     137  if( !SharedNetworkData::getInstance()->isMasterServer())
     138    return;
     139
    128140  IPaddress *ip = new IPaddress;
    129141
Note: See TracChangeset for help on using the changeset viewer.