From 9e58cc82bde9018878cbf34082961c916be9a71b Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 23 Aug 2018 00:10:49 +0300 Subject: [PATCH] [Server] Set minimum updateRate when communicating with master server --- apps/openmw-mp/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 9f9096e3d..00bd037c2 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -296,8 +296,15 @@ int main(int argc, char *argv[]) // redirect it to the correct port for the currently used fork of RakNet if (Misc::StringUtils::ciEqual(masterAddr, "master.tes3mp.com") && masterPort == 25560) { - LOG_APPEND(Log::LOG_INFO, "- switching to port 25561 because the correct official master server for this version is on that port"); masterPort = 25561; + LOG_APPEND(Log::LOG_INFO, "- switching to port %i because the correct official master server for this version is on that port", + masterPort); + } + + if (updateRate < 8000) + { + updateRate = 8000; + LOG_APPEND(Log::LOG_INFO, "- switching to updateRate %i because the one in the server config was too low", updateRate); } networking.InitQuery(masterAddr, (unsigned short) masterPort);