Skip to content

Commit

Permalink
Merge Fixes 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fd committed Jun 11, 2018
1 parent 6b9ca55 commit 1e8ef3f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/fluddokt/opsu/fake/GameOpsu.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class GameOpsu extends com.badlogic.gdx.Game {

public final static String VERSION = "0.16.0b";
public final static String VERSION = "0.16.1a";
public StateBasedGame sbg;

Stage stage;
Expand Down
8 changes: 0 additions & 8 deletions src/itdelatrisu/opsu/GameData.java
Original file line number Diff line number Diff line change
Expand Up @@ -1539,14 +1539,6 @@ public void sendSpinnerSpinResult(int result) {
return;
}

score += hitValue;
health.changeHealthForHit(result);
}
break;
default:
return;
}

score += hitValue;
health.changeHealthForHit(result);
}
Expand Down
4 changes: 3 additions & 1 deletion src/itdelatrisu/opsu/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public static String readDataFromUrl(URL url) throws IOException {
conn.setConnectTimeout(Download.CONNECTION_TIMEOUT);
conn.setReadTimeout(Download.READ_TIMEOUT);
conn.setUseCaches(false);
conn.setRequestProperty("User-Agent", "Mozilla/5.0...");
conn.setRequestProperty("User-Agent", Options.USER_AGENT);
try {
conn.connect();
} catch (SocketTimeoutException e) {
Expand Down Expand Up @@ -842,9 +842,11 @@ public static void copyToClipboard(String text) {
}

/** Sets the execute permission for the given file. */
/*
public static void setExecutable(File file) {
if (!Files.isExecutable(file.toPath())) {
file.setExecutable(true);
}
}
*/
}
4 changes: 2 additions & 2 deletions src/itdelatrisu/opsu/options/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ public void selectItem(int index, GameContainer container) {
int fps = getTargetFPS();
boolean vsync = (fps == 60);
container.setTargetFrameRate(fps);
if (container.isVSyncRequested() != vsync) {
//if (container.isVSyncRequested() != vsync) {
container.setVSync(vsync);
}
//}
}

@Override
Expand Down

0 comments on commit 1e8ef3f

Please sign in to comment.