force break end when next object shows

This commit is contained in:
yugecin 2016-12-09 23:13:05 +01:00
parent 5f9f68c6e8
commit 915728ec24

View File

@ -865,7 +865,7 @@ public class Game extends BasicGameState {
if (beatmap.breaks != null && breakIndex < beatmap.breaks.size()) { if (beatmap.breaks != null && breakIndex < beatmap.breaks.size()) {
int breakValue = beatmap.breaks.get(breakIndex); int breakValue = beatmap.breaks.get(breakIndex);
if (breakTime > 0) { // in a break period if (breakTime > 0) { // in a break period
if (trackPosition < breakValue) if (trackPosition < breakValue && trackPosition < beatmap.objects[objectIndex].getTime() - approachTime)
return; return;
else { else {
// break is over // break is over