Improved rejoining reliability

This commit is contained in:
mathusummut
2018-12-14 16:12:27 +01:00
parent eefb930120
commit 878e047dba

View File

@@ -2316,7 +2316,7 @@ namespace Game {
} }
if (bOkToStart == true) { if (bOkToStart == true) {
bool useInGameBlockingClientSockets = Config::getInstance().getBool("EnableInGameBlockingSockets", "true"); bool useInGameBlockingClientSockets = Config::getInstance().getBool("EnableInGameBlockingSockets", "false");
if (useInGameBlockingClientSockets == true) { if (useInGameBlockingClientSockets == true) {
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s Line: %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__); if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s Line: %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
@@ -2431,7 +2431,7 @@ namespace Game {
if (difftime((long int) time(NULL), lastListenerSlotCheckTime) >= 7) { if (difftime((long int) time(NULL), lastListenerSlotCheckTime) >= 7) {
lastListenerSlotCheckTime = time(NULL); lastListenerSlotCheckTime = time(NULL);
bool useInGameBlockingClientSockets = Config::getInstance().getBool("EnableInGameBlockingSockets", "true"); bool useInGameBlockingClientSockets = Config::getInstance().getBool("EnableInGameBlockingSockets", "false");
if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s Line: %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__); if (SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork, "In [%s::%s Line: %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
for (int startIndex = 0; startIndex < GameConstants::maxPlayers; ++startIndex) { for (int startIndex = 0; startIndex < GameConstants::maxPlayers; ++startIndex) {