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

remove copy-paste

This commit is contained in:
Andrey Filipenkov
2022-07-28 12:31:26 +03:00
parent 342a859a3f
commit b7bc8495d8

View File

@@ -231,10 +231,11 @@ void CServerHandler::startLocalServerAndConnect()
th->update(); //put breakpoint here to attach to server before it does something stupid th->update(); //put breakpoint here to attach to server before it does something stupid
#if !defined(VCMI_ANDROID) && !defined(VCMI_IOS) #if !defined(VCMI_ANDROID) && !defined(VCMI_IOS)
justConnectToServer(settings["server"]["server"].String(), shm ? shm->sr->port : 0); const ui16 port = shm ? shm->sr->port : 0;
#else #else
justConnectToServer(settings["server"]["server"].String()); const ui16 port = 0;
#endif #endif
justConnectToServer(settings["server"]["server"].String(), port);
logNetwork->trace("\tConnecting to the server: %d ms", th->getDiff()); logNetwork->trace("\tConnecting to the server: %d ms", th->getDiff());
} }