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
This commit is contained in:
jason@long.name 2013-08-25 02:22:30 +00:00
parent 47963b0011
commit 8f7523fd62

View file

@ -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;