Update of /cvsroot/rails/18xx/rails/ui/swing/hexmap
In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv29623/rails/ui/swing/hexmap
Modified Files:
GUITile.java
Log Message:
Fix tile 209 (1835 green Berlin) laying ptoblem (no valid orientation).
Index: GUITile.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/hexmap/GUITile.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** GUITile.java 18 Apr 2010 15:09:58 -0000 1.23
--- GUITile.java 2 May 2010 20:18:31 -0000 1.24
***************
*** 199,202 ****
--- 199,204 ----
// If connected cities do not correspond, skip
// (this is the "OO brown upgrade get-right" feature)
+ // Only apply this check if the number of cities has not decreased
+ if (getTile().getNumStations() < prevTile.getNumStations()) continue;
log.debug("Compare "+oldCities.get(kkk)+"/"+oldCities.get(lll)
+" ~ "+newCities.get(kk)+"/"+newCities.get(ll));
|