adjust countRoad in SiedlerGame

This commit is contained in:
Andrin Fassbind
2021-12-05 14:12:22 +01:00
parent a79e1eefe3
commit 21f144b294
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -508,6 +508,9 @@ public class SiedlerGame {
*/
private HashSet<Road> countRoad(Config.Faction faction,Point position,HashSet<Road> roads,boolean add) {
List<Road> roadslist = board.getAdjacentEdges(position);
if(board.getCorner(position) != null || board.getCorner(position).getFaction() != faction) {
return roads;
}
Iterator it2 = roads.iterator();
while(it2.hasNext()) {