no more long nicknames which overlaps other text

This commit is contained in:
filux 2015-02-06 00:58:02 +01:00
parent f5d4fe37da
commit 3a1f295e4e
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ void BattleEnd::render() {
Vec3f color = stats.getPlayerColor(i);
if(stats.getPlayerName(i) != "") {
string textToRender=stats.getPlayerName(i);
string textToRender=stats.getPlayerName(i).substr(0,11);
if(stats.getPlayerLeftBeforeEnd(i)==true){
textToRender+="\n("+getTimeDuationString(stats.getTimePlayerLeft(i),GameConstants::updateFps) + ")";
}