Player now has to enter a name other than "" before submitting the Highscore.

This commit is contained in:
Jan Philipp Timme 2014-12-16 12:47:09 +01:00
parent 5352131e01
commit 2d7c3c2f62
1 changed files with 5 additions and 2 deletions

View File

@ -167,8 +167,11 @@ public class EnterHighscoreScreen extends Screen {
eingabeName += letters[i].getText(); eingabeName += letters[i].getText();
} }
} }
//Make sure the player entered a name.
if(eingabeName.equals("") == false) {
Highscore.newScore(this.score, eingabeName); Highscore.newScore(this.score, eingabeName);
animationStatus = 1; animationStatus = 1;
}
}else{ }else{
if(this.enteredLetter < 10) this.searchForChar(); if(this.enteredLetter < 10) this.searchForChar();
} }