@@ -47,12 +47,12 @@ public class Landscape {
47
47
public static byte [][] terrainData ;
48
48
public static boolean loadGeneratedMap = false ;
49
49
public static int [] terrainDataIds ;
50
- public static int [][][] tile_height = new int [4 ][105 ][105 ];
50
+ public int [][][] tile_height = new int [4 ][105 ][105 ];
51
51
public static int randomiserLightness = -16 + (int ) (Math .random () * 33.0 );
52
52
public static int randomiserHue = -8 + (int ) (17.0 * Math .random ());
53
53
private static int lowestPlane = 99 ;
54
54
55
- public static void loadRegion () {
55
+ public void loadRegion () {
56
56
method364 (false );
57
57
Game .anInt874 = 0 ;
58
58
boolean bool = true ;
@@ -254,7 +254,7 @@ public static void loadRegion() {
254
254
255
255
}
256
256
257
- private static void loadTerrainSubblock (int y , int drawX , int drawingPlane , int currentPlane , int x , int drawY , int rotation , byte [] terrainData , CollisionMap [] collisionMaps ) {
257
+ private void loadTerrainSubblock (int y , int drawX , int drawingPlane , int currentPlane , int x , int drawY , int rotation , byte [] terrainData , CollisionMap [] collisionMaps ) {
258
258
for (int i = 0 ; i < 8 ; i ++) {
259
259
for (int yIdx = 0 ; yIdx < 8 ; yIdx ++) {
260
260
if (x + i > 0 && i + x < 103 && y + yIdx > 0 && yIdx + y < 103 )
@@ -297,7 +297,7 @@ private static int getRotatedTileY(int x, int y, int rotation) {
297
297
298
298
}
299
299
300
- private static void constructMapRegionObjects (int drawX , int drawY , int drawingPlane , int orientation , int x , int y , int plane , Scene scene , byte [] objectData , CollisionMap [] collisionMaps ) {
300
+ private void constructMapRegionObjects (int drawX , int drawY , int drawingPlane , int orientation , int x , int y , int plane , Scene scene , byte [] objectData , CollisionMap [] collisionMaps ) {
301
301
Buffer objectBuffer = new Buffer (objectData );
302
302
int i = -1 ;
303
303
for (; ; ) {
@@ -367,7 +367,7 @@ private static int getRotatedObjectY(int x, int y, int sizeX, int sizeY, int ori
367
367
return x ;
368
368
}
369
369
370
- private static void createRegion (Scene scene , CollisionMap [] collisionMaps ) {
370
+ private void createRegion (Scene scene , CollisionMap [] collisionMaps ) {
371
371
for (int plane = 0 ; plane < 4 ; plane ++) {
372
372
for (int x = 0 ; x < 104 ; x ++) {
373
373
for (int y = 0 ; y < 104 ; y ++) {
@@ -743,7 +743,7 @@ private static void method1020() {
743
743
tile_underlayids = new byte [4 ][104 ][104 ];
744
744
}
745
745
746
- private static void loadTerrainBlock (CollisionMap [] collisions , int regionX_maybe , byte [] blockData , int offsetX , int offsetY , int regionY_maybe ) {
746
+ private void loadTerrainBlock (CollisionMap [] collisions , int regionX_maybe , byte [] blockData , int offsetX , int offsetY , int regionY_maybe ) {
747
747
for (int i = 0 ; i < 4 ; i ++) {
748
748
for (int i_1_ = 0 ; i_1_ < 64 ; i_1_ ++) {
749
749
for (int i_2_ = 0 ; i_2_ < 64 ; i_2_ ++) {
@@ -763,7 +763,7 @@ private static void loadTerrainBlock(CollisionMap[] collisions, int regionX_mayb
763
763
}
764
764
}
765
765
766
- private static void method922 (int x , int arg1 , Buffer fileData , int y , int regionY , int regionX , int level ) {
766
+ private void method922 (int x , int arg1 , Buffer fileData , int y , int regionY , int regionX , int level ) {
767
767
if (x >= 0 && x < 104 && y >= 0 && y < 104 ) {
768
768
MovedStatics .tile_flags [level ][x ][y ] = (byte ) 0 ;
769
769
for (; ; ) {
@@ -936,7 +936,7 @@ else if(lightness > 126)
936
936
return lightness + (hsl & 0xff80 );
937
937
}
938
938
939
- private static void loadObjectBlock (int block_x , Scene scene , CollisionMap [] collisionMaps , byte [] block_data , int block_z ) {
939
+ private void loadObjectBlock (int block_x , Scene scene , CollisionMap [] collisionMaps , byte [] block_data , int block_z ) {
940
940
Buffer buffer = new Buffer (block_data );
941
941
int object_id = -1 ;
942
942
for (; ; ) {
@@ -971,7 +971,7 @@ private static void loadObjectBlock(int block_x, Scene scene, CollisionMap[] col
971
971
}
972
972
}
973
973
974
- public static void addObject (int objectId , int localX , int localY , int plane , int face , int type , Scene scene , CollisionMap collisionMap ) {
974
+ public void addObject (int objectId , int localX , int localY , int plane , int face , int type , Scene scene , CollisionMap collisionMap ) {
975
975
if (!VertexNormal .lowMemory || (0x2 & MovedStatics .tile_flags [0 ][localX ][localY ]) != 0 || (0x10 & MovedStatics .tile_flags [plane ][localX ][localY ]) == 0 && MovedStatics .onBuildTimePlane == MovedStatics .getVisibilityPlaneFor (plane , localY , 0 , localX )) {
976
976
if (lowestPlane > plane )
977
977
lowestPlane = plane ;
@@ -1297,7 +1297,7 @@ private static void method364(boolean arg1) {
1297
1297
}
1298
1298
}
1299
1299
1300
- private static void initiateVertexHeights (int offsetY , int sizeY , int sizeX , int offsetX ) {
1300
+ private void initiateVertexHeights (int offsetY , int sizeY , int sizeX , int offsetX ) {
1301
1301
for (int y = offsetY ; y <= offsetY + sizeY ; y ++) {
1302
1302
for (int x = offsetX ; sizeX + offsetX >= x ; x ++) {
1303
1303
if (x >= 0 && x < 104 && y >= 0 && y < 104 ) {
@@ -1315,7 +1315,7 @@ private static void initiateVertexHeights(int offsetY, int sizeY, int sizeX, int
1315
1315
}
1316
1316
}
1317
1317
1318
- private static void method455 (int arg0 , int arg1 , int arg3 ) {
1318
+ private void method455 (int arg0 , int arg1 , int arg3 ) {
1319
1319
for (int i = 0 ; i < 8 ; i ++) {
1320
1320
for (int i_0_ = 0 ; i_0_ < 8 ; i_0_ ++)
1321
1321
tile_height [arg1 ][arg3 + i ][arg0 + i_0_ ] = 0 ;
0 commit comments