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:
parent
47963b0011
commit
8f7523fd62
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue