Player now has to enter a name other than "" before submitting the Highscore.
This commit is contained in:
parent
5352131e01
commit
2d7c3c2f62
|
@ -167,8 +167,11 @@ public class EnterHighscoreScreen extends Screen {
|
|||
eingabeName += letters[i].getText();
|
||||
}
|
||||
}
|
||||
Highscore.newScore(this.score, eingabeName);
|
||||
animationStatus = 1;
|
||||
//Make sure the player entered a name.
|
||||
if(eingabeName.equals("") == false) {
|
||||
Highscore.newScore(this.score, eingabeName);
|
||||
animationStatus = 1;
|
||||
}
|
||||
}else{
|
||||
if(this.enteredLetter < 10) this.searchForChar();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue