From: Stefan F. <ste...@us...> - 2010-05-20 23:13:29
|
Update of /cvsroot/rails/18xx/rails/game In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv26538/rails/game Modified Files: Bonus.java Log Message: Added support for 18EU Pullman, introduced RevenueDynamicModifier Index: Bonus.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/Bonus.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Bonus.java 19 May 2010 20:14:13 -0000 1.10 --- Bonus.java 20 May 2010 23:13:21 -0000 1.11 *************** *** 5,9 **** import java.util.Set; - import org.apache.log4j.Logger; import rails.algorithms.NetworkVertex; --- 5,8 ---- *************** *** 84,89 **** */ public void close() { - owner.removeBonus(name); } --- 83,89 ---- */ public void close() { owner.removeBonus(name); + // remove it from the call list of the RevenueManager + GameManager.getInstance().getRevenueManager().removeStaticModifier(this); } |