cleanup: make tem[] a local variable instead of global
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@536 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
99234bebc2
commit
9cedc10ef8
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@ public class Micropolis
|
|||
public int [][] crimeMem; //updated each cycle by crimeScan(); affects land value
|
||||
public int [][] popDensity;
|
||||
public int [][] trfDensity;
|
||||
int [][] tem;
|
||||
|
||||
// quarter-size arrays
|
||||
int [][] terrainMem;
|
||||
|
@ -182,7 +181,6 @@ public class Micropolis
|
|||
crimeMem = new int[hY][hX];
|
||||
popDensity = new int[hY][hX];
|
||||
trfDensity = new int[hY][hX];
|
||||
tem = new int[hY][hX];
|
||||
|
||||
int qX = (width+3)/4;
|
||||
int qY = (height+3)/4;
|
||||
|
@ -1060,6 +1058,7 @@ public class Micropolis
|
|||
|
||||
final int HWLDX = (getWidth()+1)/2;
|
||||
final int HWLDY = (getHeight()+1)/2;
|
||||
int [][] tem = new int[HWLDY][HWLDX];
|
||||
for (int x = 0; x < HWLDX; x++)
|
||||
{
|
||||
for (int y = 0; y < HWLDY; y++)
|
||||
|
|
Reference in a new issue