mirror of
https://github.com/taoneill/war.git
synced 2025-01-05 15:27:34 +01:00
Teams without any players won't score
This commit is contained in:
parent
568833b1bf
commit
55ac717f89
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user