Fixed bug with watching replays on "Auto" counting as retries.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2016-12-23 00:50:45 -05:00
parent 8a7b67b578
commit 2d7a4a3eab

View File

@ -1271,11 +1271,13 @@ public class Game extends BasicGameState {
loadImages(); loadImages();
setMapModifiers(); setMapModifiers();
retries = 0; retries = 0;
} else if (restart == Restart.MANUAL) { } else if (restart == Restart.MANUAL && !GameMod.AUTO.isActive()) {
// retry // retry
retries++; retries++;
} else if (restart == Restart.REPLAY) } else if (restart == Restart.REPLAY || GameMod.AUTO.isActive()) {
// replay
retries = 0; retries = 0;
}
gameObjects = new GameObject[beatmap.objects.length]; gameObjects = new GameObject[beatmap.objects.length];
playbackSpeed = PlaybackSpeed.NORMAL; playbackSpeed = PlaybackSpeed.NORMAL;
@ -1580,6 +1582,7 @@ public class Game extends BasicGameState {
autoMousePosition = new Vec2f(); autoMousePosition = new Vec2f();
autoMousePressed = false; autoMousePressed = false;
flashlightRadius = container.getHeight() * 2 / 3; flashlightRadius = container.getHeight() * 2 / 3;
scoreboardStarStream.clear();
System.gc(); System.gc();
} }