From 55ac717f893b63e8dc7599ab97c5b8e69f01b501 Mon Sep 17 00:00:00 2001 From: Superyoshi Date: Tue, 5 Apr 2011 14:04:21 +0200 Subject: [PATCH] Teams without any players won't score --- war/src/main/java/com/tommytony/war/Team.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/war/src/main/java/com/tommytony/war/Team.java b/war/src/main/java/com/tommytony/war/Team.java index efafa7d..ffdbe43 100644 --- a/war/src/main/java/com/tommytony/war/Team.java +++ b/war/src/main/java/com/tommytony/war/Team.java @@ -351,7 +351,7 @@ public class Team { } public void addPoint() { - points++; + if (players.size()!=0) points++; } public int getPoints() { @@ -405,7 +405,7 @@ public class Team { } public void setPoints(int score) { - this.points = score; + if (players.size()!=0) this.points = score; } public void setFlagVolume(Volume flagVolume) {