From: Erik V. <ev...@us...> - 2009-12-28 13:21:25
|
Update of /cvsroot/rails/18xx/rails/game In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21015/rails/game Modified Files: PublicCompany.java Log Message: Fixed bookkeeping on sold bonus tokens, in particular in relation to dropping duplicate tokens acquired by the CGR Index: PublicCompany.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/PublicCompany.java,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** PublicCompany.java 13 Dec 2009 16:39:48 -0000 1.74 --- PublicCompany.java 28 Dec 2009 13:21:13 -0000 1.75 *************** *** 1533,1536 **** --- 1533,1538 ---- if (sp instanceof SellBonusToken) { ((SellBonusToken)sp).setSeller(this); + // Also note 1 has been used + ((SellBonusToken)sp).setExercised(); } spsToMoveToGM.add(sp); *************** *** 1542,1545 **** --- 1544,1548 ---- for (SpecialPropertyI sp : spsToMoveToGM) { sp.moveTo(gameManager); + log.debug("SP "+sp.getName()+" is now a common property"); } } |