adjust countRoad in SiedlerGame

This commit is contained in:
Andrin Fassbind committed 2021-12-05 14:12:22 +01:00
1 parent a79e1eefe3
commit 21f144b294
2 files changed
+4 -1

No files matched your search

+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()) {