attempt to fix sb again

This commit is contained in:
yugecin 2016-12-11 20:15:08 +01:00
parent 86ebe2ef73
commit baa43ac544
2 changed files with 4 additions and 4 deletions

View File

@ -1551,9 +1551,9 @@ public class Game extends BasicGameState {
Dancer.instance.setGameObjects(gameObjects);
sbOverlay.setGameObjects(gameObjects);
sbOverlay.updateIndex(objectIndex);
if (!skippedToCheckpoint) {
sbOverlay.enter();
sbOverlay.updateIndex(0);
}
Pippi.reset();

View File

@ -198,18 +198,18 @@ public class SBOverlay implements OptionsOverlay.Parent {
}
} else if (key == Input.KEY_J && index > 0) {
index--;
setMusicPosition();
goBackOneSBIndex();
setMusicPosition();
} else if (key == Input.KEY_K && index < gameObjects.length - 1) {
index++;
setMusicPosition();
updateIndex(index);
setMusicPosition();
}
return false;
}
private void goBackOneSBIndex() {
if (index + 1 < optionsMap.length && optionsMap[index + 1] != null) {
if (index + 1 < optionsMap.length) {
// new options on previous index, so to revert then we have to reload them all to this point..
reloadSBsettingsToIndex(index);
}