From 5c497ae17358317e32bc32fa0a29de77d9d0907a Mon Sep 17 00:00:00 2001 From: Roslyn Henry <roslyn.henry@ed.ac.uk> Date: Wed, 3 Mar 2021 19:06:30 +0000 Subject: [PATCH] ...forgot to remove test for debugging. --- src/ac/ed/lurg/country/GlobalPrice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ac/ed/lurg/country/GlobalPrice.java b/src/ac/ed/lurg/country/GlobalPrice.java index bc9bca1a..26124311 100644 --- a/src/ac/ed/lurg/country/GlobalPrice.java +++ b/src/ac/ed/lurg/country/GlobalPrice.java @@ -97,7 +97,7 @@ public class GlobalPrice implements Serializable { else { if (stockChange == 0 && production == 0) adjustment=1; - else if (stockChange >= 0 && production != 0) // stock increasing, so decrease price. stockChange is positive so adjustment < 1 + else if (stockChange >= 0) // stock increasing, so decrease price. stockChange is positive so adjustment < 1 adjustment = 1 - ModelConfig.MARKET_LAMBA * stockChange/production; else // stock decreasing, so increase price. stockChange is negative so adjustment > 1 adjustment = 1 - ModelConfig.MARKET_LAMBA * stockChange/Math.max(0, stockLevel); -- GitLab