fix speed resetting when skipping objects using sb

This commit is contained in:
yugecin 2016-12-11 14:41:09 +01:00
parent 642baf1081
commit 7309399fd5

View File

@ -311,8 +311,8 @@ public class Game extends BasicGameState {
public void loadCheckpoint(int checkpoint) { public void loadCheckpoint(int checkpoint) {
try { try {
restart = Restart.MANUAL; restart = Restart.MANUAL;
enter(container, game);
checkpointLoaded = true; checkpointLoaded = true;
enter(container, game);
if (isLeadIn()) { if (isLeadIn()) {
leadInTime = 0; leadInTime = 0;
epiImgTime = 0; epiImgTime = 0;
@ -1546,7 +1546,7 @@ public class Game extends BasicGameState {
Dancer.instance.setGameObjects(gameObjects); Dancer.instance.setGameObjects(gameObjects);
sbOverlay.setGameObjects(gameObjects); sbOverlay.setGameObjects(gameObjects);
if (!checkpointLoaded) { if (restart != Restart.FALSE) {
sbOverlay.enter(); sbOverlay.enter();
sbOverlay.updateIndex(0); sbOverlay.updateIndex(0);
} }