From 39eb83eb87c76e677c6a241a31e759ee1d93634c Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 23 Mar 2014 20:31:59 +0100 Subject: [PATCH] Changed: Use BuildName only on Unix --HG-- branch : compatibility --- code/ryzom/client/src/login_patch.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 4c45f7781..5250c3037 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -2328,7 +2328,6 @@ void CCheckThread::run () uint32 i, j, k; // Check if the client version is the same as the server version string sClientVersion = pPM->getClientVersion(); - string sClientNewVersion = ClientCfg.BuildName; string sServerVersion = pPM->getServerVersion(); ucstring sTranslate = CI18N::get("uiClientVersion") + " (" + sClientVersion + ") "; sTranslate += CI18N::get("uiServerVersion") + " (" + sServerVersion + ")"; @@ -2342,12 +2341,16 @@ void CCheckThread::run () return; } - sint32 nServerVersion, nClientVersion, nClientNewVersion; + sint32 nServerVersion, nClientVersion; fromString(sServerVersion, nServerVersion); fromString(sClientVersion, nClientVersion); - fromString(sClientNewVersion, nClientNewVersion); #ifdef NL_OS_UNIX + string sClientNewVersion = ClientCfg.BuildName; + + sint32 nClientNewVersion; + fromString(sClientNewVersion, nClientNewVersion); + // servers files are not compatible with current client, use last client version if (nClientNewVersion && nServerVersion > nClientNewVersion) {