From: Erik V. <ev...@us...> - 2010-02-05 19:59:00
|
Update of /cvsroot/rails/18xx/rails/game In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6242/rails/game Modified Files: StockRound.java Log Message: Force selling excess shares Index: StockRound.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/StockRound.java,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** StockRound.java 31 Jan 2010 22:22:28 -0000 1.58 --- StockRound.java 5 Feb 2010 19:58:45 -0000 1.59 *************** *** 95,103 **** public boolean setPossibleActions() { ! boolean passAllowed = true; ! ! setBuyableCerts(); setSellableShares(); setSpecialActions(); --- 95,107 ---- public boolean setPossibleActions() { ! boolean passAllowed = false; setSellableShares(); + + if (isPlayerOverLimits (currentPlayer)) return true; + + passAllowed = true; + + setBuyableCerts(); setSpecialActions(); |