[Server] Use MasterServer update rate from config

0.6.1
Koncord 8 years ago
parent dcc61a095a
commit c2ce2f2ce7

@ -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…
Cancel
Save