diff --git a/.idea/misc.xml b/.idea/misc.xml index 1029788..b573818 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/ch/zhaw/catan/SiedlerGame.java b/src/ch/zhaw/catan/SiedlerGame.java index 207bf94..1e5afc7 100644 --- a/src/ch/zhaw/catan/SiedlerGame.java +++ b/src/ch/zhaw/catan/SiedlerGame.java @@ -508,6 +508,9 @@ public class SiedlerGame { */ private HashSet countRoad(Config.Faction faction,Point position,HashSet roads,boolean add) { List roadslist = board.getAdjacentEdges(position); + if(board.getCorner(position) != null || board.getCorner(position).getFaction() != faction) { + return roads; + } Iterator it2 = roads.iterator(); while(it2.hasNext()) {