Quick fix: 'Esc' key not properly checked in splash screen.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-01-27 15:20:03 -05:00
parent 71edef2fa9
commit f71b2c25f2

View File

@ -144,12 +144,14 @@ public class Splash extends BasicGameState {
@Override @Override
public void keyPressed(int key, char c) { public void keyPressed(int key, char c) {
// close program if (key == Input.KEY_ESCAPE) {
if (++escapeCount >= 3) // close program
container.exit(); if (++escapeCount >= 3)
container.exit();
// stop parsing OsuFiles by sending interrupt to OsuParser // stop parsing OsuFiles by sending interrupt to OsuParser
else if (key == Input.KEY_ESCAPE && thread != null) else if (thread != null)
thread.interrupt(); thread.interrupt();
}
} }
} }