mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: Use BuildName only on Unix
This commit is contained in:
parent
2b078627e4
commit
82686fe4d3
1 changed files with 6 additions and 3 deletions
|
@ -2328,7 +2328,6 @@ void CCheckThread::run ()
|
||||||
uint32 i, j, k;
|
uint32 i, j, k;
|
||||||
// Check if the client version is the same as the server version
|
// Check if the client version is the same as the server version
|
||||||
string sClientVersion = pPM->getClientVersion();
|
string sClientVersion = pPM->getClientVersion();
|
||||||
string sClientNewVersion = ClientCfg.BuildName;
|
|
||||||
string sServerVersion = pPM->getServerVersion();
|
string sServerVersion = pPM->getServerVersion();
|
||||||
ucstring sTranslate = CI18N::get("uiClientVersion") + " (" + sClientVersion + ") ";
|
ucstring sTranslate = CI18N::get("uiClientVersion") + " (" + sClientVersion + ") ";
|
||||||
sTranslate += CI18N::get("uiServerVersion") + " (" + sServerVersion + ")";
|
sTranslate += CI18N::get("uiServerVersion") + " (" + sServerVersion + ")";
|
||||||
|
@ -2342,12 +2341,16 @@ void CCheckThread::run ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sint32 nServerVersion, nClientVersion, nClientNewVersion;
|
sint32 nServerVersion, nClientVersion;
|
||||||
fromString(sServerVersion, nServerVersion);
|
fromString(sServerVersion, nServerVersion);
|
||||||
fromString(sClientVersion, nClientVersion);
|
fromString(sClientVersion, nClientVersion);
|
||||||
fromString(sClientNewVersion, nClientNewVersion);
|
|
||||||
|
|
||||||
#ifdef NL_OS_UNIX
|
#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
|
// servers files are not compatible with current client, use last client version
|
||||||
if (nClientNewVersion && nServerVersion > nClientNewVersion)
|
if (nClientNewVersion && nServerVersion > nClientNewVersion)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue