From 563bd8ac57391c93945bf224d23edeedc8c16c47 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 11 Jan 2013 04:32:52 +0000 Subject: [PATCH] - client disconnect handling improvement --- source/glest_game/network/client_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/network/client_interface.cpp b/source/glest_game/network/client_interface.cpp index 6e0a322a..f2ccfe43 100644 --- a/source/glest_game/network/client_interface.cpp +++ b/source/glest_game/network/client_interface.cpp @@ -155,7 +155,7 @@ void ClientInterface::update() { if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start(); bool wasConnected = this->isConnected(); - if(wasConnected == false) { + if(gotIntro == true && wasConnected == false) { string playerNameStr = getHumanPlayerName(); Lang &lang= Lang::getInstance(); @@ -212,7 +212,7 @@ void ClientInterface::update() { SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] Error [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what()); SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,ex.what()); - if(wasConnected == false) { + if(gotIntro == false || wasConnected == false) { string sErr = string(extractFileFromDirectoryPath(__FILE__).c_str()) + "::" + string(__FUNCTION__) + " network error: " + string(ex.what()); DisplayErrorMessage(sErr); }