pause music when pressing c and already at 0 speed

This commit is contained in:
yugecin 2016-11-13 13:10:49 +01:00
parent 454d09b5d0
commit db6c813715

View File

@ -115,8 +115,10 @@ public class SBOverlay {
if (options.keyPressed(key, c)) {
return true;
}
if (key == Input.KEY_C && speed > 0) {
if (key == Input.KEY_C) {
if (speed > 0) {
speed -= 1;
}
if (speed == 0) {
MusicController.pause();
} else {