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
public void keyPressed(int key, char c) {
if (key == Input.KEY_ESCAPE) {
// close program
if (++escapeCount >= 3)
container.exit();
// stop parsing OsuFiles by sending interrupt to OsuParser
else if (key == Input.KEY_ESCAPE && thread != null)
else if (thread != null)
thread.interrupt();
}
}
}