From: Erik V. <ev...@us...> - 2010-01-26 20:09:48
|
Update of /cvsroot/rails/18xx/rails/game/action In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11041/rails/game/action Modified Files: BuyTrain.java Log Message: Cleanup & additional comment Index: BuyTrain.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/action/BuyTrain.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** BuyTrain.java 26 Jan 2010 19:50:28 -0000 1.15 --- BuyTrain.java 26 Jan 2010 20:09:39 -0000 1.16 *************** *** 265,269 **** train = trainManager.getTrainByUniqueId(trainUniqueId); ! log.debug("--- Train with uid="+trainUniqueId+" is "+train, new Exception ("X")); from = gameManager.getPortfolioByName(fromName); if (trainsForExchangeUniqueIds != null --- 265,271 ---- train = trainManager.getTrainByUniqueId(trainUniqueId); ! // Note: the 2nd etc. copy of an unlimited quantity train will become null this way. ! // Set getTrain() for how this is fixed. ! from = gameManager.getPortfolioByName(fromName); if (trainsForExchangeUniqueIds != null |