adjust countRoad in SiedlerGame
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user