pause music when pressing c and already at 0 speed
This commit is contained in:
@@ -115,8 +115,10 @@ public class SBOverlay {
|
|||||||
if (options.keyPressed(key, c)) {
|
if (options.keyPressed(key, c)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (key == Input.KEY_C && speed > 0) {
|
if (key == Input.KEY_C) {
|
||||||
speed -= 1;
|
if (speed > 0) {
|
||||||
|
speed -= 1;
|
||||||
|
}
|
||||||
if (speed == 0) {
|
if (speed == 0) {
|
||||||
MusicController.pause();
|
MusicController.pause();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user