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();
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue