Skip to content

Commit 61add2a

Browse files
committed
refactor: move tile visibility statics
1 parent 38873fb commit 61add2a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ 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+
35+
private static final int TILE_DRAW_DISTANCE = 75;
36+
public static boolean[][] TILE_VISIBILITY_MAP;
37+
public static boolean[][][][] TILE_VISIBILITY_MAPS = new boolean[8][32][(TILE_DRAW_DISTANCE * 2) + 1][(TILE_DRAW_DISTANCE * 2) + 1];
38+
39+
3440
public static boolean lowMemory = true;
3541
public static int cycle;
3642

@@ -57,9 +63,6 @@ public class Scene {
5763
public static SceneCluster[][] cullingClusters = new SceneCluster[anInt90][500];
5864
public static int drawWidthMidpoint;
5965
public static int drawHeight;
60-
private static final int TILE_DRAW_DISTANCE = 75;
61-
public static boolean[][] TILE_VISIBILITY_MAP;
62-
public static boolean[][][][] TILE_VISIBILITY_MAPS = new boolean[8][32][(TILE_DRAW_DISTANCE * 2) + 1][(TILE_DRAW_DISTANCE * 2) + 1];
6366
public static int drawHeightMidpoint;
6467
public static int drawWidth;
6568
public static int[] screenY = new int[6];

0 commit comments

Comments
 (0)