mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
don't mix functionality
Not a bug fix, just trying to keep things more clean.
This commit is contained in:
@@ -239,7 +239,7 @@ float saturate(float value);
|
||||
int round(float f);
|
||||
|
||||
//misc
|
||||
int compareMajorMinorVersion(string versionA,string versionB, bool checkForNewVersionUpdates=false);
|
||||
int compareMajorMinorVersion(string versionA,string versionB);
|
||||
int getMajor(string version);
|
||||
int getMinor(string version);
|
||||
bool checkVersionComptability(string clientVersionString, string serverVersionString);
|
||||
|
@@ -787,7 +787,7 @@ int round(float f){
|
||||
}
|
||||
|
||||
// ==================== misc ====================
|
||||
int compareMajorMinorVersion(string versionA,string versionB, bool checkForNewVersionUpdates) {
|
||||
int compareMajorMinorVersion(string versionA,string versionB) {
|
||||
int majorA = getMajor(versionA);
|
||||
int minorA = getMinor(versionA);
|
||||
int majorB = getMajor(versionB);
|
||||
@@ -801,11 +801,6 @@ int compareMajorMinorVersion(string versionA,string versionB, bool checkForNewVe
|
||||
return -1;
|
||||
}
|
||||
else if(minorA == minorB) {
|
||||
if(checkForNewVersionUpdates) {
|
||||
if(versionA != versionB) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user