From: Stefan F. <ste...@us...> - 2011-08-11 10:00:38
|
rails/game/specific/_18TN/PublicCompany_18TN.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) New commits: commit 65f7ed334d271a38a138aeaa2e25ca5c36b9d759 Author: Stefan Frey <ste...@we...> Date: Thu Aug 11 12:02:39 2011 +0200 Fixed bug in 18TN modifier diff --git a/rails/game/specific/_18TN/PublicCompany_18TN.java b/rails/game/specific/_18TN/PublicCompany_18TN.java index b6fe19d..8b3869e 100644 --- a/rails/game/specific/_18TN/PublicCompany_18TN.java +++ b/rails/game/specific/_18TN/PublicCompany_18TN.java @@ -54,6 +54,9 @@ public class PublicCompany_18TN extends PublicCompany implements RevenueStaticMo */ public boolean modifyCalculator(RevenueAdapter revenueAdapter) { + // check first if it is the company for the revenue calculation + if (revenueAdapter.getCompany() != this) return false; + // check if it is civil war, otherwise no effect if (!isCivilWar()) return false; @@ -72,8 +75,5 @@ public class PublicCompany_18TN extends PublicCompany implements RevenueStaticMo public String prettyPrint(RevenueAdapter revenueAdapter) { return LocalText.getText("CivilWarActive"); } - - - } |