Update of /cvsroot/rails/18xx/rails/game
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17047/rails/game
Modified Files:
Tile.java
Log Message:
Honour new UnlimitedTiles game option
Index: Tile.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/game/Tile.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** Tile.java 8 Jan 2010 21:30:46 -0000 1.33
--- Tile.java 20 Jan 2010 20:41:11 -0000 1.34
***************
*** 201,205 ****
quantity = setTag.getAttributeAsInteger("quantity", 0);
/* Value '99' and '-1' mean 'unlimited' */
! unlimited = (quantity == 99 || quantity == UNLIMITED_TILES);
if (unlimited) quantity = UNLIMITED_TILES;
/* Multiple base tokens of one company allowed */
--- 201,206 ----
quantity = setTag.getAttributeAsInteger("quantity", 0);
/* Value '99' and '-1' mean 'unlimited' */
! unlimited = (quantity == 99 || quantity == UNLIMITED_TILES
! || setTag.getGameOptions().get("UnlimitedTiles").equalsIgnoreCase("yes"));
if (unlimited) quantity = UNLIMITED_TILES;
/* Multiple base tokens of one company allowed */
|