From 8f7523fd62875c4b314f334e532c1238e6ec48e0 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Sun, 25 Aug 2013 02:22:30 +0000 Subject: [PATCH] demand valves: fix bug in demand valve determination is supposed to be dependent on tax rate, but due to using the wrong local variable, it was ignoring the tax rate. This fix will make the economy a little slower. git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@801 d9718cc8-9f43-0410-858b-315f434eb58c --- src/micropolisj/engine/Micropolis.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/micropolisj/engine/Micropolis.java b/src/micropolisj/engine/Micropolis.java index f10e839..30a5daf 100644 --- a/src/micropolisj/engine/Micropolis.java +++ b/src/micropolisj/engine/Micropolis.java @@ -1262,9 +1262,9 @@ public class Micropolis if (z2 > 20) z2 = 20; - resRatio = (resRatio - 1) * 600 + TaxTable[z]; - comRatio = (comRatio - 1) * 600 + TaxTable[z]; - indRatio = (indRatio - 1) * 600 + TaxTable[z]; + resRatio = (resRatio - 1) * 600 + TaxTable[z2]; + comRatio = (comRatio - 1) * 600 + TaxTable[z2]; + indRatio = (indRatio - 1) * 600 + TaxTable[z2]; // ratios are velocity changes to valves resValve += (int) resRatio;