From: Erik V. <ev...@us...> - 2009-08-05 20:55:21
|
Update of /cvsroot/rails/18xx/rails/game/specific/_1856 In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11579/rails/game/specific/_1856 Modified Files: PublicCompany_1856.java Log Message: CGR 5% to 10% share conversion made undoable Index: PublicCompany_1856.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_1856/PublicCompany_1856.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PublicCompany_1856.java 4 Aug 2009 22:16:52 -0000 1.5 --- PublicCompany_1856.java 5 Aug 2009 20:55:05 -0000 1.6 *************** *** 6,9 **** --- 6,10 ---- import rails.game.*; import rails.game.move.MoveableHolderI; + import rails.game.move.RemoveFromList; import rails.game.state.IntegerState; *************** *** 80,84 **** if (share >= 100) { cert.moveTo(scrapHeap); ! certificates.remove(cert); } else { share += cert.getShare(); --- 81,85 ---- if (share >= 100) { cert.moveTo(scrapHeap); ! new RemoveFromList<PublicCertificateI>(certificates, cert, "CGR_Certs"); } else { share += cert.getShare(); |