From: Erik V. <ev...@us...> - 2012-07-23 10:06:58
|
rails/ui/swing/GameStatus.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) New commits: commit 7d694b4bc788283c72de5165dee0d54ee55cb6d1 Author: Erik Vos <eri...@xs...> Date: Mon Jul 23 12:06:11 2012 +0200 Fix to all games: update PD in GameStatus lower player names row. diff --git a/rails/ui/swing/GameStatus.java b/rails/ui/swing/GameStatus.java index 4022dc3..99ec31b 100644 --- a/rails/ui/swing/GameStatus.java +++ b/rails/ui/swing/GameStatus.java @@ -1011,8 +1011,9 @@ public class GameStatus extends GridPanel implements ActionListener { public void setPriorityPlayer(int index) { for (int j = 0; j < np; j++) { - upperPlayerCaption[j].setText(players.get(j).getName() - + (j == index ? " PD" : "")); + String playerNameAndPriority = players.get(j).getName() + (j == index ? " PD" : ""); + upperPlayerCaption[j].setText(playerNameAndPriority); + lowerPlayerCaption[j].setText(playerNameAndPriority); } } |