- Correctly format the game outcome title for a draw.

This commit is contained in:
Agetian
2015-05-27 15:47:49 +00:00
parent 2057934392
commit f7518d5ccd

View File

@@ -213,7 +213,7 @@ public class ViewWinLose implements IWinLoseView<FButton> {
private static String composeTitle(final GameView game) {
final String winner = game.getWinningPlayerName();
final int winningTeam = game.getWinningTeam();
if (winner == null) {
if (winner == null || winner.isEmpty()) {
return "It's a draw!";
} else if (winningTeam != -1) {
return String.format("Team %d won!", Integer.valueOf(winningTeam));