mirror of
https://github.com/taoneill/war.git
synced 2025-01-07 08:17:46 +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() {
|
public void addPoint() {
|
||||||
points++;
|
if (players.size()!=0) points++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPoints() {
|
public int getPoints() {
|
||||||
@ -405,7 +405,7 @@ public class Team {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setPoints(int score) {
|
public void setPoints(int score) {
|
||||||
this.points = score;
|
if (players.size()!=0) this.points = score;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFlagVolume(Volume flagVolume) {
|
public void setFlagVolume(Volume flagVolume) {
|
||||||
|
Loading…
Reference in New Issue
Block a user