forked from teamnwah/openmw-tes3coop
[Server] Use MasterServer update rate from config
This commit is contained in:
parent
dcc61a095a
commit
c2ce2f2ce7
1 changed files with 2 additions and 0 deletions
|
@ -242,9 +242,11 @@ int main(int argc, char *argv[])
|
|||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sharing server query info to master enabled.");
|
||||
string masterAddr = mgr.getString("address", "MasterServer");
|
||||
int masterPort = mgr.getInt("port", "MasterServer");
|
||||
int updateRate = mgr.getInt("rate", "MasterServer");
|
||||
|
||||
networking.InitQuery(masterAddr, (unsigned short) masterPort);
|
||||
networking.getMasterClient()->SetMaxPlayers((unsigned)players);
|
||||
networking.getMasterClient()->SetUpdateRate((unsigned)updateRate);
|
||||
string hostname = mgr.getString("hostname", "General");
|
||||
networking.getMasterClient()->SetHostname(hostname);
|
||||
|
||||
|
|
Loading…
Reference in a new issue