From: Erik V. <ev...@us...> - 2010-02-20 12:43:02
|
Update of /cvsroot/rails/18xx/rails/game In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17537/rails/game Modified Files: MapManager.java Log Message: Removed some debug logging Index: MapManager.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/MapManager.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** MapManager.java 20 Feb 2010 12:34:43 -0000 1.18 --- MapManager.java 20 Feb 2010 12:42:54 -0000 1.19 *************** *** 250,254 **** */ public int[] getCityDistances (MapHex hex) { ! log.debug("+++ Checking distances from "+hex.getName()); if (!hex.getCurrentTile().hasStations()) return new int[0]; if (distanceMap == null) distanceMap = new HashMap<MapHex, int[]> (); --- 250,254 ---- */ public int[] getCityDistances (MapHex hex) { ! if (!hex.getCurrentTile().hasStations()) return new int[0]; if (distanceMap == null) distanceMap = new HashMap<MapHex, int[]> (); *************** *** 258,266 **** Set<Integer> distancesSet = new TreeSet<Integer> (); for (MapHex hex2 : mHexes.values()) { - log.debug("--- Checking other hex "+hex2.getName()); if (!hex2.getCurrentTile().hasStations()) continue; distance = getHexDistance (hex, hex2); distancesSet.add(distance); - log.debug("=== Distance is "+distance); } int[] distances = new int[distancesSet.size()]; --- 258,264 ---- |