mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 17:02:49 +02:00
don't mix functionality
Not a bug fix, just trying to keep things more clean.
This commit is contained in:
@@ -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