Skip to content

Commit

Permalink
Merge branch 'release/v0.6.22-alpha'
Browse files Browse the repository at this point in the history
  • Loading branch information
micheljung committed Aug 21, 2016
2 parents e5b830c + 4d02fac commit 7a264fa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ apply plugin: 'distribution'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

version = '0.6.21-alpha'
version = '0.6.22-alpha'

class HttpBuilder extends HTTPBuilder {

Expand Down
2 changes: 1 addition & 1 deletion downlords-faf-client.install4j
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
</applications>
</installerGui>
<mediaSets>
<windows name="Windows" id="26" customizedId="" mediaFileName="" installDir="${compiler:sys.fullName}" overridePrincipalLanguage="false" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-x86-1.8.0_102" manualJREEntry="false" bundleType="2" jreURL="https://github.com/micheljung/jre-bundles/blob/master/windows-x86-1.8.0_102.tar.gz" jreShared="false" directDownload="true" installOnlyIfNecessary="false" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows" id="26" customizedId="" mediaFileName="" installDir="${compiler:sys.fullName}" overridePrincipalLanguage="false" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="windows-x86-1.8.0_102" manualJREEntry="false" bundleType="2" jreURL="https://github.com/micheljung/jre-bundles/raw/master/windows-x86-1.8.0_102.tar.gz" jreShared="true" directDownload="false" installOnlyIfNecessary="true" customInstallBaseDir="" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers />
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/com/faforever/client/game/GameInfoBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,15 @@ private int parseRating(String string) {
} catch (NumberFormatException e) {
int rating;
String[] split = string.replace("k", "").split("\\.");
rating = Integer.parseInt(split[0]) * 1000;
if (split.length == 2) {
rating += Integer.parseInt(split[1]) * 100;
try {
rating = Integer.parseInt(split[0]) * 1000;
if (split.length == 2) {
rating += Integer.parseInt(split[1]) * 100;
}
return rating;
} catch (NumberFormatException e1) {
return Integer.MAX_VALUE;
}
return rating;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/faforever/client/map/MapUploadTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected Void call() throws Exception {
.zip();
}

logger.debug("Uploading map {}", mapPath, tmpFile);
logger.debug("Uploading map {} as {}", mapPath, tmpFile);
updateTitle(i18n.get("mapVault.upload.uploading"));

fafApiAccessor.uploadMap(tmpFile, isRanked, byteListener);
Expand Down

0 comments on commit 7a264fa

Please sign in to comment.