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