Skip to content

Commit 22a05ae

Browse files
committed
refactor: make screen/viewspace private
1 parent 61add2a commit 22a05ae

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/java/org/runejs/client/scene/Scene.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Scene {
3131
public static int[] WALL_CORNER_TYPE_64_BLOCK_OBJ_SPANS = new int[]{0, 4, 4, 8, 0, 0, 8, 0, 0};
3232
public static int[] WALL_CORNER_TYPE_128_BLOCK_OBJ_SPANS = new int[]{1, 1, 0, 0, 0, 8, 0, 0, 8};
3333

34-
34+
3535
private static final int TILE_DRAW_DISTANCE = 75;
3636
public static boolean[][] TILE_VISIBILITY_MAP;
3737
public static boolean[][][][] TILE_VISIBILITY_MAPS = new boolean[8][32][(TILE_DRAW_DISTANCE * 2) + 1][(TILE_DRAW_DISTANCE * 2) + 1];
@@ -65,11 +65,6 @@ public class Scene {
6565
public static int drawHeight;
6666
public static int drawHeightMidpoint;
6767
public static int drawWidth;
68-
public static int[] screenY = new int[6];
69-
public static int[] viewspaceZ = new int[6];
70-
public static int[] screenX = new int[6];
71-
public static int[] viewspaceX = new int[6];
72-
public static int[] viewspaceY = new int[6];
7368

7469
public SceneTile[][][] tileArray;
7570
public int[][][] tileOcclusionCycles;
@@ -81,6 +76,12 @@ public class Scene {
8176
public int[] mergeIndexA = new int[10000];
8277
public int[] mergeIndexB = new int[10000];
8378

79+
private int[] screenX = new int[6];
80+
private int[] screenY = new int[6];
81+
private int[] viewspaceX = new int[6];
82+
private int[] viewspaceZ = new int[6];
83+
private int[] viewspaceY = new int[6];
84+
8485
private boolean clicked = false;
8586
private int clickX = 0;
8687
private int clickY = 0;

0 commit comments

Comments
 (0)