1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Do not reconnect for lobby mode

This commit is contained in:
nordsoft
2022-11-21 20:23:50 +04:00
parent 71f17c317e
commit 2de168b3fe

View File

@@ -507,6 +507,10 @@ int main(int argc, char * argv[])
session["hostUuid"].String() = vm["lobby-uuid"].as<std::string>();
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"))