Skip to content

Commit

Permalink
Fixed Count in screen names
Browse files Browse the repository at this point in the history
  • Loading branch information
dlweatherhead committed Sep 11, 2018
1 parent e90c03e commit b0fa43d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/EC2018/CountInDetailPopulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public string GetPlayerName(PlayerType playerType) {
string playerName;
if (playerType == PlayerType.A) {
playerName = new DirectoryInfo(allPlayers[0]).Name;
}
playerName = new DirectoryInfo(allPlayers[1]).Name;
} else {
playerName = new DirectoryInfo(allPlayers[1]).Name;
}

if(playerName.Length > MaxLength) {
playerName = playerName.Substring(0, MaxLength) + "...";
Expand Down

0 comments on commit b0fa43d

Please sign in to comment.