From 2de168b3feb17bb0ad221ba504e891aedcdd94fd Mon Sep 17 00:00:00 2001 From: nordsoft Date: Mon, 21 Nov 2022 20:23:50 +0400 Subject: [PATCH] Do not reconnect for lobby mode --- client/CMT.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/CMT.cpp b/client/CMT.cpp index dfaf94273..ea96ebd11 100644 --- a/client/CMT.cpp +++ b/client/CMT.cpp @@ -507,6 +507,10 @@ int main(int argc, char * argv[]) session["hostUuid"].String() = vm["lobby-uuid"].as(); logGlobal->info("This client will host session, server uuid is %s", session["hostUuid"].String()); } + + //we should not reconnect to previous game in online mode + Settings saveSession = settings.write["server"]["reconnect"]; + saveSession->Bool() = false; } if(vm.count("testmap"))