Skip to content

Commit bf8dc4d

Browse files
committed
refactor: rename mergeIndexTmp
1 parent 1f3acbe commit bf8dc4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class Scene {
7474
public InteractiveObject[] sceneSpawnRequestsCache = new InteractiveObject[5000];
7575
public int currentPositionZ = 0;
7676
public int[][][] heightMap;
77-
public int anInt126 = 0;
77+
public int mergeIndexTmp = 0;
7878
public int[] mergeIndexA = new int[10000];
7979
public int[] mergeIndexB = new int[10000];
8080

@@ -1493,7 +1493,7 @@ public void click(int arg0, int arg1) {
14931493

14941494
public void mergeNormals(Model modelA, Model modelB, int i, int j, int k, boolean arg5) {
14951495
modelB.method822();
1496-
anInt126++;
1496+
mergeIndexTmp++;
14971497
int count = 0;
14981498
int[] vertices = modelB.verticesX;
14991499
int vertexCount = modelB.vertexCount;
@@ -1520,8 +1520,8 @@ public void mergeNormals(Model modelA, Model modelB, int i, int j, int k, boolea
15201520
_vertexNormal.z += offsetVertexNormal.z;
15211521
_vertexNormal.magnitude += offsetVertexNormal.magnitude;
15221522
count++;
1523-
mergeIndexA[vertex] = anInt126;
1524-
mergeIndexB[v] = anInt126;
1523+
mergeIndexA[vertex] = mergeIndexTmp;
1524+
mergeIndexB[v] = mergeIndexTmp;
15251525
}
15261526
}
15271527
}
@@ -1531,12 +1531,12 @@ public void mergeNormals(Model modelA, Model modelB, int i, int j, int k, boolea
15311531
}
15321532
if (count >= 3 && arg5) {
15331533
for (int tri = 0; tri < modelA.triangleCount; tri++) {
1534-
if (mergeIndexA[modelA.trianglePointsX[tri]] == anInt126 && mergeIndexA[modelA.trianglePointsY[tri]] == anInt126 && mergeIndexA[modelA.trianglePointsZ[tri]] == anInt126) {
1534+
if (mergeIndexA[modelA.trianglePointsX[tri]] == mergeIndexTmp && mergeIndexA[modelA.trianglePointsY[tri]] == mergeIndexTmp && mergeIndexA[modelA.trianglePointsZ[tri]] == mergeIndexTmp) {
15351535
modelA.triangleDrawType[tri] = -1;
15361536
}
15371537
}
15381538
for (int tri = 0; tri < modelB.triangleCount; tri++) {
1539-
if (mergeIndexB[modelB.trianglePointsX[tri]] == anInt126 && mergeIndexB[modelB.trianglePointsY[tri]] == anInt126 && mergeIndexB[modelB.trianglePointsZ[tri]] == anInt126) {
1539+
if (mergeIndexB[modelB.trianglePointsX[tri]] == mergeIndexTmp && mergeIndexB[modelB.trianglePointsY[tri]] == mergeIndexTmp && mergeIndexB[modelB.trianglePointsZ[tri]] == mergeIndexTmp) {
15401540
modelB.triangleDrawType[tri] = -1;
15411541
}
15421542
}

0 commit comments

Comments
 (0)