Minor bug fixes.
- Fixed null pointer in "Main Menu" state if no tracks loaded. (since b0c0b44
)
- Fixed "keyOsuLeft" and "keyOsuRight" writing KEY_NONE to configuration file on first run (instead of default values).
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
c0870afb77
commit
834682a6ca
|
@ -188,7 +188,7 @@ public class MainMenu extends BasicGameState {
|
|||
g.setColor(Utils.COLOR_BLACK_ALPHA);
|
||||
g.fillRoundRect(width - 168, 54, 148, 5, 4);
|
||||
g.setColor(Color.white);
|
||||
if (!MusicController.isTrackLoading())
|
||||
if (!MusicController.isTrackLoading() && osu != null)
|
||||
g.fillRoundRect(width - 168, 54,
|
||||
148f * MusicController.getPosition() / osu.endTime, 5, 4);
|
||||
|
||||
|
|
|
@ -1433,9 +1433,9 @@ public class Options extends BasicGameState {
|
|||
writer.newLine();
|
||||
writer.write(String.format("DisableSound = %b", disableSound));
|
||||
writer.newLine();
|
||||
writer.write(String.format("keyOsuLeft = %s", Keyboard.getKeyName(keyLeft)));
|
||||
writer.write(String.format("keyOsuLeft = %s", Keyboard.getKeyName(getGameKeyLeft())));
|
||||
writer.newLine();
|
||||
writer.write(String.format("keyOsuRight = %s", Keyboard.getKeyName(keyRight)));
|
||||
writer.write(String.format("keyOsuRight = %s", Keyboard.getKeyName(getGameKeyRight())));
|
||||
writer.newLine();
|
||||
writer.write(String.format("DimLevel = %d", backgroundDim));
|
||||
writer.newLine();
|
||||
|
|
Loading…
Reference in New Issue
Block a user