From c2ce2f2ce7f6ea422fbace8b5e4e0fd7ea503314 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 7 May 2017 01:50:19 +0800 Subject: [PATCH] [Server] Use MasterServer update rate from config --- apps/openmw-mp/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 5f5508da2..5c4c0e823 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -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);