From: Erik V. <ev...@us...> - 2009-12-30 11:32:11
|
Update of /cvsroot/rails/18xx/rails/game/specific/_1856 In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13202/rails/game/specific/_1856 Modified Files: PublicCompany_CGR.java Log Message: Added mayBuyTrainType() to fix incorrect 4-train buy option for 1856 CGR. Index: PublicCompany_CGR.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_1856/PublicCompany_CGR.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PublicCompany_CGR.java 9 Oct 2009 20:20:34 -0000 1.5 --- PublicCompany_CGR.java 30 Dec 2009 11:32:00 -0000 1.6 *************** *** 55,58 **** --- 55,62 ---- } } + + public boolean mayBuyTrainType (TrainI train) { + return !"4".equals(train.getName()); + } @Override |