Added option to disable sound effects from loading. (partially resolves issue #1)

- By default, sound effects will be disabled on Linux due to driver issues.

Other changes:
- Minor corner-case fix in song selection. (since 95f969f)

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2014-07-10 22:01:39 -04:00
parent 842563c6a5
commit 5aa9620834
3 changed files with 37 additions and 3 deletions

View File

@@ -569,7 +569,7 @@ public class SongMenu extends BasicGameState {
pos = (int) (Math.random() * length);
// change the focus node
if (flag || (startNode.index == 0 && startNode.prev == null))
if (flag || (startNode.index == 0 && startNode.osuFileIndex == -1 && startNode.prev == null))
startNode = node;
focusNode = Opsu.groups.getNode(node, pos);
MusicController.play(focusNode.osuFiles.get(focusNode.osuFileIndex), true);