Clarifying Parenthesis
This commit is contained in:
1 parent
6e1d6a4688
commit
cc40cc2c67
40 files changed
+1828
-1828
No files matched your search
@@ -177,11 +177,11 @@ public class BZip2Deflator {
|
||||
}
|
||||
block.anInt580 = 0;
|
||||
byte0 = method228(block);
|
||||
block.anInt580 = block.anInt580 << 8 | byte0 & 0xff;
|
||||
block.anInt580 = (block.anInt580 << 8) | (byte0 & 0xff);
|
||||
byte0 = method228(block);
|
||||
block.anInt580 = block.anInt580 << 8 | byte0 & 0xff;
|
||||
block.anInt580 = (block.anInt580 << 8) | (byte0 & 0xff);
|
||||
byte0 = method228(block);
|
||||
block.anInt580 = block.anInt580 << 8 | byte0 & 0xff;
|
||||
block.anInt580 = (block.anInt580 << 8) | (byte0 & 0xff);
|
||||
for (int j = 0; j < 16; j++) {
|
||||
byte byte1 = method229(block);
|
||||
block.aBooleanArray590[j] = byte1 == 1;
|
||||
@@ -194,7 +194,7 @@ public class BZip2Deflator {
|
||||
for (int i3 = 0; i3 < 16; i3++) {
|
||||
byte byte2 = method229(block);
|
||||
if (byte2 == 1) {
|
||||
block.aBooleanArray589[l * 16 + i3] = true;
|
||||
block.aBooleanArray589[(l * 16) + i3] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -268,7 +268,7 @@ public class BZip2Deflator {
|
||||
int j9 = 4095;
|
||||
for (int l8 = 15; l8 >= 0; l8--) {
|
||||
for (int i9 = 15; i9 >= 0; i9--) {
|
||||
block.aByteArray592[j9] = (byte) (l8 * 16 + i9);
|
||||
block.aByteArray592[j9] = (byte) ((l8 * 16) + i9);
|
||||
j9--;
|
||||
}
|
||||
block.anIntArray593[l8] = j9 + 1;
|
||||
@@ -287,12 +287,12 @@ public class BZip2Deflator {
|
||||
int i7 = k8;
|
||||
int l7;
|
||||
byte byte9;
|
||||
for (l7 = method230(i7, block); l7 > ai[i7]; l7 = l7 << 1 | byte9) {
|
||||
for (l7 = method230(i7, block); l7 > ai[i7]; l7 = (l7 << 1) | byte9) {
|
||||
i7++;
|
||||
byte9 = method229(block);
|
||||
}
|
||||
for (int k5 = ai2[l7 - ai1[i7]]; k5 != l4; ) {
|
||||
if (k5 == 0 || k5 == 1) {
|
||||
if ((k5 == 0) || (k5 == 1)) {
|
||||
int j6 = -1;
|
||||
int k6 = 1;
|
||||
do {
|
||||
@@ -315,12 +315,12 @@ public class BZip2Deflator {
|
||||
int j7 = k8;
|
||||
int i8;
|
||||
byte byte10;
|
||||
for (i8 = method230(j7, block); i8 > ai[j7]; i8 = i8 << 1 | byte10) {
|
||||
for (i8 = method230(j7, block); i8 > ai[j7]; i8 = (i8 << 1) | byte10) {
|
||||
j7++;
|
||||
byte10 = method229(block);
|
||||
}
|
||||
k5 = ai2[i8 - ai1[j7]];
|
||||
} while (k5 == 0 || k5 == 1);
|
||||
} while ((k5 == 0) || (k5 == 1));
|
||||
j6++;
|
||||
byte byte5 = block.aByteArray591[block.aByteArray592[block.anIntArray593[0]] & 0xff];
|
||||
block.anIntArray583[byte5 & 0xff] += j6;
|
||||
@@ -387,7 +387,7 @@ public class BZip2Deflator {
|
||||
int k7 = k8;
|
||||
int j8;
|
||||
byte byte11;
|
||||
for (j8 = method230(k7, block); j8 > ai[k7]; j8 = j8 << 1 | byte11) {
|
||||
for (j8 = method230(k7, block); j8 > ai[k7]; j8 = (j8 << 1) | byte11) {
|
||||
k7++;
|
||||
byte11 = method229(block);
|
||||
}
|
||||
@@ -416,7 +416,7 @@ public class BZip2Deflator {
|
||||
block.anInt584++;
|
||||
block.anInt601 = i6;
|
||||
method226(block);
|
||||
flag19 = block.anInt584 == block.anInt601 + 1 && block.anInt574 == 0;
|
||||
flag19 = (block.anInt584 == (block.anInt601 + 1)) && (block.anInt574 == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -432,12 +432,12 @@ public class BZip2Deflator {
|
||||
int j;
|
||||
do {
|
||||
if (block.anInt577 >= i) {
|
||||
int k = block.anInt576 >> block.anInt577 - i & (1 << i) - 1;
|
||||
int k = (block.anInt576 >> (block.anInt577 - i)) & ((1 << i) - 1);
|
||||
block.anInt577 -= i;
|
||||
j = k;
|
||||
break;
|
||||
}
|
||||
block.anInt576 = block.anInt576 << 8 | block.aByteArray563[block.anInt564] & 0xff;
|
||||
block.anInt576 = (block.anInt576 << 8) | (block.aByteArray563[block.anInt564] & 0xff);
|
||||
block.anInt577 += 8;
|
||||
block.anInt564++;
|
||||
block.anInt565--;
|
||||
@@ -488,7 +488,7 @@ public class BZip2Deflator {
|
||||
i3 <<= 1;
|
||||
}
|
||||
for (int k2 = i + 1; k2 <= j; k2++) {
|
||||
ai1[k2] = (ai[k2 - 1] + 1 << 1) - ai1[k2];
|
||||
ai1[k2] = ((ai[k2 - 1] + 1) << 1) - ai1[k2];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,11 +39,11 @@ public class BitmapFont extends Draw2D {
|
||||
} else if (k1 == 1) {
|
||||
for (int j2 = 0; j2 < i1; j2++) {
|
||||
for (int l2 = 0; l2 < j1; l2++) {
|
||||
aByteArrayArray1491[l][j2 + l2 * i1] = buffer.method409();
|
||||
aByteArrayArray1491[l][j2 + (l2 * i1)] = buffer.method409();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (j1 > anInt1497 && l < 128) {
|
||||
if ((j1 > anInt1497) && (l < 128)) {
|
||||
anInt1497 = j1;
|
||||
}
|
||||
anIntArray1494[l] = 1;
|
||||
@@ -52,15 +52,15 @@ public class BitmapFont extends Draw2D {
|
||||
for (int i3 = j1 / 7; i3 < j1; i3++) {
|
||||
k2 += aByteArrayArray1491[l][i3 * i1];
|
||||
}
|
||||
if (k2 <= j1 / 7) {
|
||||
if (k2 <= (j1 / 7)) {
|
||||
anIntArray1496[l]--;
|
||||
anIntArray1494[l] = 0;
|
||||
}
|
||||
k2 = 0;
|
||||
for (int j3 = j1 / 7; j3 < j1; j3++) {
|
||||
k2 += aByteArrayArray1491[l][(i1 - 1) + j3 * i1];
|
||||
k2 += aByteArrayArray1491[l][(i1 - 1) + (j3 * i1)];
|
||||
}
|
||||
if (k2 <= j1 / 7) {
|
||||
if (k2 <= (j1 / 7)) {
|
||||
anIntArray1496[l]--;
|
||||
}
|
||||
}
|
||||
@@ -76,11 +76,11 @@ public class BitmapFont extends Draw2D {
|
||||
}
|
||||
|
||||
public void method381(int i, String s, int k, int l) {
|
||||
method385(i, s, k, l - method384(s) / 2);
|
||||
method385(i, s, k, l - (method384(s) / 2));
|
||||
}
|
||||
|
||||
public void method382(int i, int j, String s, int l, boolean flag) {
|
||||
method389(flag, j - method383(s) / 2, i, s, l);
|
||||
method389(flag, j - (method383(s) / 2), i, s, l);
|
||||
}
|
||||
|
||||
public int method383(String s) {
|
||||
@@ -89,7 +89,7 @@ public class BitmapFont extends Draw2D {
|
||||
}
|
||||
int j = 0;
|
||||
for (int k = 0; k < s.length(); k++) {
|
||||
if (s.charAt(k) == '@' && k + 4 < s.length() && s.charAt(k + 4) == '@') {
|
||||
if ((s.charAt(k) == '@') && ((k + 4) < s.length()) && (s.charAt(k + 4) == '@')) {
|
||||
k += 4;
|
||||
} else {
|
||||
j += anIntArray1496[s.charAt(k)];
|
||||
@@ -132,7 +132,7 @@ public class BitmapFont extends Draw2D {
|
||||
for (int i1 = 0; i1 < s.length(); i1++) {
|
||||
char c = s.charAt(i1);
|
||||
if (c != ' ') {
|
||||
method392(aByteArrayArray1491[c], j + anIntArray1494[c], l + anIntArray1495[c] + (int) (Math.sin((double) i1 / 2D + (double) k / 5D) * 5D), anIntArray1492[c], anIntArray1493[c], i);
|
||||
method392(aByteArrayArray1491[c], j + anIntArray1494[c], l + anIntArray1495[c] + (int) (Math.sin(((double) i1 / 2D) + ((double) k / 5D)) * 5D), anIntArray1492[c], anIntArray1493[c], i);
|
||||
}
|
||||
j += anIntArray1496[c];
|
||||
}
|
||||
@@ -147,7 +147,7 @@ public class BitmapFont extends Draw2D {
|
||||
for (int i1 = 0; i1 < s.length(); i1++) {
|
||||
char c = s.charAt(i1);
|
||||
if (c != ' ') {
|
||||
method392(aByteArrayArray1491[c], i + anIntArray1494[c] + (int) (Math.sin((double) i1 / 5D + (double) j / 5D) * 5D), k + anIntArray1495[c] + (int) (Math.sin((double) i1 / 3D + (double) j / 5D) * 5D), anIntArray1492[c], anIntArray1493[c], l);
|
||||
method392(aByteArrayArray1491[c], i + anIntArray1494[c] + (int) (Math.sin(((double) i1 / 5D) + ((double) j / 5D)) * 5D), k + anIntArray1495[c] + (int) (Math.sin(((double) i1 / 3D) + ((double) j / 5D)) * 5D), anIntArray1492[c], anIntArray1493[c], l);
|
||||
}
|
||||
i += anIntArray1496[c];
|
||||
}
|
||||
@@ -157,7 +157,7 @@ public class BitmapFont extends Draw2D {
|
||||
if (s == null) {
|
||||
return;
|
||||
}
|
||||
double d = 7D - (double) i / 8D;
|
||||
double d = 7D - ((double) i / 8D);
|
||||
if (d < 0.0D) {
|
||||
d = 0.0D;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ public class BitmapFont extends Draw2D {
|
||||
for (int k1 = 0; k1 < s.length(); k1++) {
|
||||
char c = s.charAt(k1);
|
||||
if (c != ' ') {
|
||||
method392(aByteArrayArray1491[c], l + anIntArray1494[c], k + anIntArray1495[c] + (int) (Math.sin((double) k1 / 1.5D + (double) j) * d), anIntArray1492[c], anIntArray1493[c], i1);
|
||||
method392(aByteArrayArray1491[c], l + anIntArray1494[c], k + anIntArray1495[c] + (int) (Math.sin(((double) k1 / 1.5D) + (double) j) * d), anIntArray1492[c], anIntArray1493[c], i1);
|
||||
}
|
||||
l += anIntArray1496[c];
|
||||
}
|
||||
@@ -180,7 +180,7 @@ public class BitmapFont extends Draw2D {
|
||||
}
|
||||
k -= anInt1497;
|
||||
for (int i1 = 0; i1 < s.length(); i1++) {
|
||||
if (s.charAt(i1) == '@' && i1 + 4 < s.length() && s.charAt(i1 + 4) == '@') {
|
||||
if ((s.charAt(i1) == '@') && ((i1 + 4) < s.length()) && (s.charAt(i1 + 4) == '@')) {
|
||||
int j1 = method391(s.substring(i1 + 1, i1 + 4));
|
||||
if (j1 != -1) {
|
||||
j = j1;
|
||||
@@ -210,7 +210,7 @@ public class BitmapFont extends Draw2D {
|
||||
int j1 = 192 + (aRandom1498.nextInt() & 0x1f);
|
||||
i1 -= anInt1497;
|
||||
for (int k1 = 0; k1 < s.length(); k1++) {
|
||||
if (s.charAt(k1) == '@' && k1 + 4 < s.length() && s.charAt(k1 + 4) == '@') {
|
||||
if ((s.charAt(k1) == '@') && ((k1 + 4) < s.length()) && (s.charAt(k1 + 4) == '@')) {
|
||||
int l1 = method391(s.substring(k1 + 1, k1 + 4));
|
||||
if (l1 != -1) {
|
||||
j = l1;
|
||||
@@ -294,7 +294,7 @@ public class BitmapFont extends Draw2D {
|
||||
}
|
||||
|
||||
public void method392(byte[] abyte0, int i, int j, int k, int l, int i1) {
|
||||
int j1 = i + j * Draw2D.width;
|
||||
int j1 = i + (j * Draw2D.width);
|
||||
int k1 = Draw2D.width - k;
|
||||
int l1 = 0;
|
||||
int i2 = 0;
|
||||
@@ -305,7 +305,7 @@ public class BitmapFont extends Draw2D {
|
||||
i2 += j2 * k;
|
||||
j1 += j2 * Draw2D.width;
|
||||
}
|
||||
if (j + l >= Draw2D.bottom) {
|
||||
if ((j + l) >= Draw2D.bottom) {
|
||||
l -= ((j + l) - Draw2D.bottom) + 1;
|
||||
}
|
||||
if (i < Draw2D.left) {
|
||||
@@ -317,13 +317,13 @@ public class BitmapFont extends Draw2D {
|
||||
l1 += k2;
|
||||
k1 += k2;
|
||||
}
|
||||
if (i + k >= Draw2D.right) {
|
||||
if ((i + k) >= Draw2D.right) {
|
||||
int l2 = ((i + k) - Draw2D.right) + 1;
|
||||
k -= l2;
|
||||
l1 += l2;
|
||||
k1 += l2;
|
||||
}
|
||||
if (k <= 0 || l <= 0) {
|
||||
if ((k <= 0) || (l <= 0)) {
|
||||
} else {
|
||||
method393(Draw2D.pixels, abyte0, i1, i2, j1, k, l, k1, l1);
|
||||
}
|
||||
@@ -368,7 +368,7 @@ public class BitmapFont extends Draw2D {
|
||||
}
|
||||
|
||||
public void method394(int i, int j, byte[] abyte0, int k, int l, int i1, int j1) {
|
||||
int k1 = j + l * Draw2D.width;
|
||||
int k1 = j + (l * Draw2D.width);
|
||||
int l1 = Draw2D.width - k;
|
||||
int i2 = 0;
|
||||
int j2 = 0;
|
||||
@@ -379,7 +379,7 @@ public class BitmapFont extends Draw2D {
|
||||
j2 += k2 * k;
|
||||
k1 += k2 * Draw2D.width;
|
||||
}
|
||||
if (l + i1 >= Draw2D.bottom) {
|
||||
if ((l + i1) >= Draw2D.bottom) {
|
||||
i1 -= ((l + i1) - Draw2D.bottom) + 1;
|
||||
}
|
||||
if (j < Draw2D.left) {
|
||||
@@ -391,26 +391,26 @@ public class BitmapFont extends Draw2D {
|
||||
i2 += l2;
|
||||
l1 += l2;
|
||||
}
|
||||
if (j + k >= Draw2D.right) {
|
||||
if ((j + k) >= Draw2D.right) {
|
||||
int i3 = ((j + k) - Draw2D.right) + 1;
|
||||
k -= i3;
|
||||
i2 += i3;
|
||||
l1 += i3;
|
||||
}
|
||||
if (k <= 0 || i1 <= 0) {
|
||||
if ((k <= 0) || (i1 <= 0)) {
|
||||
return;
|
||||
}
|
||||
method395(abyte0, i1, k1, Draw2D.pixels, j2, k, i2, l1, j1, i);
|
||||
}
|
||||
|
||||
public void method395(byte[] abyte0, int i, int j, int[] ai, int l, int i1, int j1, int k1, int l1, int i2) {
|
||||
l1 = ((l1 & 0xff00ff) * i2 & 0xff00ff00) + ((l1 & 0xff00) * i2 & 0xff0000) >> 8;
|
||||
l1 = ((((l1 & 0xff00ff) * i2) & 0xff00ff00) + (((l1 & 0xff00) * i2) & 0xff0000)) >> 8;
|
||||
i2 = 256 - i2;
|
||||
for (int j2 = -i; j2 < 0; j2++) {
|
||||
for (int k2 = -i1; k2 < 0; k2++) {
|
||||
if (abyte0[l++] != 0) {
|
||||
int l2 = ai[j];
|
||||
ai[j++] = (((l2 & 0xff00ff) * i2 & 0xff00ff00) + ((l2 & 0xff00) * i2 & 0xff0000) >> 8) + l1;
|
||||
ai[j++] = (((((l2 & 0xff00ff) * i2) & 0xff00ff00) + (((l2 & 0xff00) * i2) & 0xff0000)) >> 8) + l1;
|
||||
} else {
|
||||
j++;
|
||||
}
|
||||
|
||||
+14
-14
@@ -21,7 +21,7 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
int i = j;
|
||||
for (int k = 0; k < 8; k++) {
|
||||
if ((i & 1) == 1) {
|
||||
i = i >>> 1 ^ 0xedb88320;
|
||||
i = (i >>> 1) ^ 0xedb88320;
|
||||
} else {
|
||||
i >>>= 1;
|
||||
}
|
||||
@@ -46,13 +46,13 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
public static Buffer method396(int i) {
|
||||
synchronized (A_LIST___1415) {
|
||||
Buffer class30_sub2_sub2_2 = null;
|
||||
if (i == 0 && anInt1411 > 0) {
|
||||
if ((i == 0) && (anInt1411 > 0)) {
|
||||
anInt1411--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1414.method251();
|
||||
} else if (i == 1 && anInt1412 > 0) {
|
||||
} else if ((i == 1) && (anInt1412 > 0)) {
|
||||
anInt1412--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1415.method251();
|
||||
} else if (i == 2 && anInt1413 > 0) {
|
||||
} else if ((i == 2) && (anInt1413 > 0)) {
|
||||
anInt1413--;
|
||||
class30_sub2_sub2_2 = (Buffer) A_LIST___1416.method251();
|
||||
}
|
||||
@@ -129,7 +129,7 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
}
|
||||
|
||||
public void method406(byte[] abyte0, int i, int j) {
|
||||
for (int k = j; k < j + i; k++) {
|
||||
for (int k = j; k < (j + i); k++) {
|
||||
aByteArray1405[position++] = abyte0[k];
|
||||
}
|
||||
}
|
||||
@@ -188,14 +188,14 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
while (aByteArray1405[position++] != 10) {
|
||||
}
|
||||
byte[] abyte0 = new byte[position - i - 1];
|
||||
for (int j = i; j < position - 1; j++) {
|
||||
for (int j = i; j < (position - 1); j++) {
|
||||
abyte0[j - i] = aByteArray1405[j];
|
||||
}
|
||||
return abyte0;
|
||||
}
|
||||
|
||||
public void method417(int i, int j, byte[] abyte0) {
|
||||
for (int l = j; l < j + i; l++) {
|
||||
for (int l = j; l < (j + i); l++) {
|
||||
abyte0[l] = aByteArray1405[position++];
|
||||
}
|
||||
}
|
||||
@@ -210,13 +210,13 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
int i1 = 0;
|
||||
anInt1407 += i;
|
||||
for (; i > l; l = 8) {
|
||||
i1 += (aByteArray1405[k++] & anIntArray1409[l]) << i - l;
|
||||
i1 += (aByteArray1405[k++] & anIntArray1409[l]) << (i - l);
|
||||
i -= l;
|
||||
}
|
||||
if (i == l) {
|
||||
i1 += aByteArray1405[k] & anIntArray1409[l];
|
||||
} else {
|
||||
i1 += aByteArray1405[k] >> l - i & anIntArray1409[i];
|
||||
i1 += (aByteArray1405[k] >> (l - i)) & anIntArray1409[i];
|
||||
}
|
||||
return i1;
|
||||
}
|
||||
@@ -265,7 +265,7 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
}
|
||||
|
||||
public int method426() {
|
||||
return aByteArray1405[position++] - 128 & 0xff;
|
||||
return (aByteArray1405[position++] - 128) & 0xff;
|
||||
}
|
||||
|
||||
public int method427() {
|
||||
@@ -273,7 +273,7 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
}
|
||||
|
||||
public int method428() {
|
||||
return 128 - aByteArray1405[position++] & 0xff;
|
||||
return (128 - aByteArray1405[position++]) & 0xff;
|
||||
}
|
||||
|
||||
public byte method429() {
|
||||
@@ -306,12 +306,12 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
|
||||
public int method435() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 2] & 0xff) << 8) + (aByteArray1405[position - 1] - 128 & 0xff);
|
||||
return ((aByteArray1405[position - 2] & 0xff) << 8) + ((aByteArray1405[position - 1] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int method436() {
|
||||
position += 2;
|
||||
return ((aByteArray1405[position - 1] & 0xff) << 8) + (aByteArray1405[position - 2] - 128 & 0xff);
|
||||
return ((aByteArray1405[position - 1] & 0xff) << 8) + ((aByteArray1405[position - 2] - 128) & 0xff);
|
||||
}
|
||||
|
||||
public int method437() {
|
||||
@@ -325,7 +325,7 @@ public class Buffer extends DoublyLinkedListNode {
|
||||
|
||||
public int method438() {
|
||||
position += 2;
|
||||
int j = ((aByteArray1405[position - 1] & 0xff) << 8) + (aByteArray1405[position - 2] - 128 & 0xff);
|
||||
int j = ((aByteArray1405[position - 1] & 0xff) << 8) + ((aByteArray1405[position - 2] - 128) & 0xff);
|
||||
if (j > 32767) {
|
||||
j -= 0x10000;
|
||||
}
|
||||
|
||||
+102
-102
@@ -100,7 +100,7 @@ public class Censor {
|
||||
} else {
|
||||
ac[i] = ' ';
|
||||
}
|
||||
if (i == 0 || ac[i] != ' ' || ac[i - 1] != ' ') {
|
||||
if ((i == 0) || (ac[i] != ' ') || (ac[i - 1] != ' ')) {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
@@ -110,7 +110,7 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static boolean method496(char c) {
|
||||
return c >= ' ' && c <= '\177' || c == ' ' || c == '\n' || c == '\t' || c == '\243' || c == '\u20AC';
|
||||
return ((c >= ' ') && (c <= '\177')) || (c == ' ') || (c == '\n') || (c == '\t') || (c == '\243') || (c == '\u20AC');
|
||||
}
|
||||
|
||||
public static String method497(String s, int i) {
|
||||
@@ -141,7 +141,7 @@ public class Censor {
|
||||
|
||||
public static void method498(char[] ac, int i, char[] ac1) {
|
||||
for (int j = 0; j < ac.length; j++) {
|
||||
if (ac1[j] != '*' && method522(ac[j])) {
|
||||
if ((ac1[j] != '*') && method522(ac[j])) {
|
||||
ac1[j] = ac[j];
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public class Censor {
|
||||
return;
|
||||
}
|
||||
int j;
|
||||
for (int k = 0; k <= ac.length - ac1.length; k += j) {
|
||||
for (int k = 0; k <= (ac.length - ac1.length); k += j) {
|
||||
int l = k;
|
||||
int i1 = 0;
|
||||
j = 1;
|
||||
@@ -202,10 +202,10 @@ public class Censor {
|
||||
int j1;
|
||||
char c = ac[l];
|
||||
char c1 = '\0';
|
||||
if (l + 1 < ac.length) {
|
||||
if ((l + 1) < ac.length) {
|
||||
c1 = ac[l + 1];
|
||||
}
|
||||
if (i1 < ac1.length && (j1 = method511(c, ac1[i1], c1)) > 0) {
|
||||
if ((i1 < ac1.length) && (((j1 = method511(c, ac1[i1], c1))) > 0)) {
|
||||
l += j1;
|
||||
i1++;
|
||||
continue;
|
||||
@@ -220,7 +220,7 @@ public class Censor {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (i1 >= ac1.length || !method517(c)) {
|
||||
if ((i1 >= ac1.length) || !method517(c)) {
|
||||
break;
|
||||
}
|
||||
l++;
|
||||
@@ -229,7 +229,7 @@ public class Censor {
|
||||
boolean flag1 = false;
|
||||
int k1 = method503(ac, ac3, k);
|
||||
int l1 = method504(ac2, l - 1, ac);
|
||||
if (k1 > 2 || l1 > 2) {
|
||||
if ((k1 > 2) || (l1 > 2)) {
|
||||
flag1 = true;
|
||||
}
|
||||
if (flag1) {
|
||||
@@ -269,14 +269,14 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static int method504(char[] ac, int i, char[] ac1) {
|
||||
if (i + 1 == ac1.length) {
|
||||
if ((i + 1) == ac1.length) {
|
||||
return 2;
|
||||
}
|
||||
for (int j = i + 1; j < ac1.length; j++) {
|
||||
if (!method517(ac1[j])) {
|
||||
break;
|
||||
}
|
||||
if (ac1[j] == '.' || ac1[j] == ',') {
|
||||
if ((ac1[j] == '.') || (ac1[j] == ',')) {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
@@ -312,7 +312,7 @@ public class Censor {
|
||||
return;
|
||||
}
|
||||
int j;
|
||||
for (int k = 0; k <= ac3.length - ac1.length; k += j) {
|
||||
for (int k = 0; k <= (ac3.length - ac1.length); k += j) {
|
||||
int l = k;
|
||||
int i1 = 0;
|
||||
j = 1;
|
||||
@@ -320,10 +320,10 @@ public class Censor {
|
||||
int j1;
|
||||
char c = ac3[l];
|
||||
char c1 = '\0';
|
||||
if (l + 1 < ac3.length) {
|
||||
if ((l + 1) < ac3.length) {
|
||||
c1 = ac3[l + 1];
|
||||
}
|
||||
if (i1 < ac1.length && (j1 = method511(c, ac1[i1], c1)) > 0) {
|
||||
if ((i1 < ac1.length) && (((j1 = method511(c, ac1[i1], c1))) > 0)) {
|
||||
l += j1;
|
||||
i1++;
|
||||
continue;
|
||||
@@ -338,7 +338,7 @@ public class Censor {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (i1 >= ac1.length || !method517(c)) {
|
||||
if ((i1 >= ac1.length) || !method517(c)) {
|
||||
break;
|
||||
}
|
||||
l++;
|
||||
@@ -347,13 +347,13 @@ public class Censor {
|
||||
boolean flag1 = false;
|
||||
int k1 = method507(ac3, k, ac2);
|
||||
int l1 = method508(ac3, ac, l - 1);
|
||||
if (i == 1 && k1 > 0 && l1 > 0) {
|
||||
if ((i == 1) && (k1 > 0) && (l1 > 0)) {
|
||||
flag1 = true;
|
||||
}
|
||||
if (i == 2 && (k1 > 2 && l1 > 0 || k1 > 0 && l1 > 2)) {
|
||||
if ((i == 2) && (((k1 > 2) && (l1 > 0)) || ((k1 > 0) && (l1 > 2)))) {
|
||||
flag1 = true;
|
||||
}
|
||||
if (i == 3 && k1 > 0 && l1 > 2) {
|
||||
if ((i == 3) && (k1 > 0) && (l1 > 2)) {
|
||||
flag1 = true;
|
||||
}
|
||||
if (flag1) {
|
||||
@@ -431,7 +431,7 @@ public class Censor {
|
||||
if (!method517(ac[k])) {
|
||||
break;
|
||||
}
|
||||
if (ac[k] == ',' || ac[k] == '.') {
|
||||
if ((ac[k] == ',') || (ac[k] == '.')) {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
@@ -451,14 +451,14 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static int method508(char[] ac, char[] ac1, int i) {
|
||||
if (i + 1 == ac.length) {
|
||||
if ((i + 1) == ac.length) {
|
||||
return 2;
|
||||
}
|
||||
for (int j = i + 1; j < ac.length; j++) {
|
||||
if (!method517(ac[j])) {
|
||||
break;
|
||||
}
|
||||
if (ac[j] == '\\' || ac[j] == '/') {
|
||||
if ((ac[j] == '\\') || (ac[j] == '/')) {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
@@ -482,7 +482,7 @@ public class Censor {
|
||||
return;
|
||||
}
|
||||
int j;
|
||||
for (int k = 0; k <= ac.length - ac1.length; k += j) {
|
||||
for (int k = 0; k <= (ac.length - ac1.length); k += j) {
|
||||
int l = k;
|
||||
int i1 = 0;
|
||||
int j1 = 0;
|
||||
@@ -490,18 +490,18 @@ public class Censor {
|
||||
boolean flag1 = false;
|
||||
boolean flag2 = false;
|
||||
boolean flag3 = false;
|
||||
while (l < ac.length && (!flag2 || !flag3)) {
|
||||
while ((l < ac.length) && (!flag2 || !flag3)) {
|
||||
int k1;
|
||||
char c = ac[l];
|
||||
char c2 = '\0';
|
||||
if (l + 1 < ac.length) {
|
||||
if ((l + 1) < ac.length) {
|
||||
c2 = ac[l + 1];
|
||||
}
|
||||
if (i1 < ac1.length && (k1 = method512(c2, c, ac1[i1])) > 0) {
|
||||
if (k1 == 1 && method520(c)) {
|
||||
if ((i1 < ac1.length) && (((k1 = method512(c2, c, ac1[i1]))) > 0)) {
|
||||
if ((k1 == 1) && method520(c)) {
|
||||
flag2 = true;
|
||||
}
|
||||
if (k1 == 2 && (method520(c) || method520(c2))) {
|
||||
if ((k1 == 2) && (method520(c) || method520(c2))) {
|
||||
flag2 = true;
|
||||
}
|
||||
l += k1;
|
||||
@@ -518,25 +518,25 @@ public class Censor {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (i1 >= ac1.length || !method518(c)) {
|
||||
if ((i1 >= ac1.length) || !method518(c)) {
|
||||
break;
|
||||
}
|
||||
if (method517(c) && c != '\'') {
|
||||
if (method517(c) && (c != '\'')) {
|
||||
flag1 = true;
|
||||
}
|
||||
if (method520(c)) {
|
||||
flag3 = true;
|
||||
}
|
||||
l++;
|
||||
if ((++j1 * 100) / (l - k) > 90) {
|
||||
if (((++j1 * 100) / (l - k)) > 90) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i1 >= ac1.length && (!flag2 || !flag3)) {
|
||||
if ((i1 >= ac1.length) && (!flag2 || !flag3)) {
|
||||
boolean flag4 = true;
|
||||
if (!flag1) {
|
||||
char c1 = ' ';
|
||||
if (k - 1 >= 0) {
|
||||
if ((k - 1) >= 0) {
|
||||
c1 = ac[k - 1];
|
||||
}
|
||||
char c3 = ' ';
|
||||
@@ -545,16 +545,16 @@ public class Censor {
|
||||
}
|
||||
byte byte0 = method513(c1);
|
||||
byte byte1 = method513(c3);
|
||||
if (abyte0 != null && method510(byte0, abyte0, byte1)) {
|
||||
if ((abyte0 != null) && method510(byte0, abyte0, byte1)) {
|
||||
flag4 = false;
|
||||
}
|
||||
} else {
|
||||
boolean flag5 = false;
|
||||
boolean flag6 = false;
|
||||
if (k - 1 < 0 || method517(ac[k - 1]) && ac[k - 1] != '\'') {
|
||||
if (((k - 1) < 0) || (method517(ac[k - 1]) && (ac[k - 1] != '\''))) {
|
||||
flag5 = true;
|
||||
}
|
||||
if (l >= ac.length || method517(ac[l]) && ac[l] != '\'') {
|
||||
if ((l >= ac.length) || (method517(ac[l]) && (ac[l] != '\''))) {
|
||||
flag6 = true;
|
||||
}
|
||||
if (!flag5 || !flag6) {
|
||||
@@ -563,12 +563,12 @@ public class Censor {
|
||||
if (flag5) {
|
||||
k2 = k;
|
||||
}
|
||||
for (; !flag7 && k2 < l; k2++) {
|
||||
if (k2 >= 0 && (!method517(ac[k2]) || ac[k2] == '\'')) {
|
||||
for (; !flag7 && (k2 < l); k2++) {
|
||||
if ((k2 >= 0) && (!method517(ac[k2]) || (ac[k2] == '\''))) {
|
||||
char[] ac2 = new char[3];
|
||||
int j3;
|
||||
for (j3 = 0; j3 < 3; j3++) {
|
||||
if (k2 + j3 >= ac.length || method517(ac[k2 + j3]) && ac[k2 + j3] != '\'') {
|
||||
if (((k2 + j3) >= ac.length) || (method517(ac[k2 + j3]) && (ac[k2 + j3] != '\''))) {
|
||||
break;
|
||||
}
|
||||
ac2[j3] = ac[k2 + j3];
|
||||
@@ -577,7 +577,7 @@ public class Censor {
|
||||
if (j3 == 0) {
|
||||
flag8 = false;
|
||||
}
|
||||
if (j3 < 3 && k2 - 1 >= 0 && (!method517(ac[k2 - 1]) || ac[k2 - 1] == '\'')) {
|
||||
if ((j3 < 3) && ((k2 - 1) >= 0) && (!method517(ac[k2 - 1]) || (ac[k2 - 1] == '\''))) {
|
||||
flag8 = false;
|
||||
}
|
||||
if (flag8 && !method523(ac2)) {
|
||||
@@ -619,24 +619,24 @@ public class Censor {
|
||||
|
||||
public static boolean method510(byte byte0, byte[][] abyte0, byte byte2) {
|
||||
int i = 0;
|
||||
if (abyte0[i][0] == byte0 && abyte0[i][1] == byte2) {
|
||||
if ((abyte0[i][0] == byte0) && (abyte0[i][1] == byte2)) {
|
||||
return true;
|
||||
}
|
||||
int j = abyte0.length - 1;
|
||||
if (abyte0[j][0] == byte0 && abyte0[j][1] == byte2) {
|
||||
if ((abyte0[j][0] == byte0) && (abyte0[j][1] == byte2)) {
|
||||
return true;
|
||||
}
|
||||
do {
|
||||
int k = (i + j) / 2;
|
||||
if (abyte0[k][0] == byte0 && abyte0[k][1] == byte2) {
|
||||
if ((abyte0[k][0] == byte0) && (abyte0[k][1] == byte2)) {
|
||||
return true;
|
||||
}
|
||||
if (byte0 < abyte0[k][0] || byte0 == abyte0[k][0] && byte2 < abyte0[k][1]) {
|
||||
if ((byte0 < abyte0[k][0]) || ((byte0 == abyte0[k][0]) && (byte2 < abyte0[k][1]))) {
|
||||
j = k;
|
||||
} else {
|
||||
i = k;
|
||||
}
|
||||
} while (i != j && i + 1 != j);
|
||||
} while ((i != j) && ((i + 1) != j));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -644,64 +644,64 @@ public class Censor {
|
||||
if (c1 == c) {
|
||||
return 1;
|
||||
}
|
||||
if (c1 == 'o' && c == '0') {
|
||||
if ((c1 == 'o') && (c == '0')) {
|
||||
return 1;
|
||||
}
|
||||
if (c1 == 'o' && c == '(' && c2 == ')') {
|
||||
if ((c1 == 'o') && (c == '(') && (c2 == ')')) {
|
||||
return 2;
|
||||
}
|
||||
if (c1 == 'c' && (c == '(' || c == '<' || c == '[')) {
|
||||
if ((c1 == 'c') && ((c == '(') || (c == '<') || (c == '['))) {
|
||||
return 1;
|
||||
}
|
||||
if (c1 == 'e' && c == '\u20AC') {
|
||||
if ((c1 == 'e') && (c == '\u20AC')) {
|
||||
return 1;
|
||||
}
|
||||
if (c1 == 's' && c == '$') {
|
||||
if ((c1 == 's') && (c == '$')) {
|
||||
return 1;
|
||||
}
|
||||
return c1 != 'l' || c != 'i' ? 0 : 1;
|
||||
return ((c1 != 'l') || (c != 'i')) ? 0 : 1;
|
||||
}
|
||||
|
||||
public static int method512(char c, char c1, char c2) {
|
||||
if (c2 == c1) {
|
||||
return 1;
|
||||
}
|
||||
if (c2 >= 'a' && c2 <= 'm') {
|
||||
if ((c2 >= 'a') && (c2 <= 'm')) {
|
||||
if (c2 == 'a') {
|
||||
if (c1 == '4' || c1 == '@' || c1 == '^') {
|
||||
if ((c1 == '4') || (c1 == '@') || (c1 == '^')) {
|
||||
return 1;
|
||||
}
|
||||
return c1 != '/' || c != '\\' ? 0 : 2;
|
||||
return ((c1 != '/') || (c != '\\')) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'b') {
|
||||
if (c1 == '6' || c1 == '8') {
|
||||
if ((c1 == '6') || (c1 == '8')) {
|
||||
return 1;
|
||||
}
|
||||
return (c1 != '1' || c != '3') && (c1 != 'i' || c != '3') ? 0 : 2;
|
||||
return (((c1 != '1') || (c != '3')) && ((c1 != 'i') || (c != '3'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'c') {
|
||||
return c1 != '(' && c1 != '<' && c1 != '{' && c1 != '[' ? 0 : 1;
|
||||
return ((c1 != '(') && (c1 != '<') && (c1 != '{') && (c1 != '[')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'd') {
|
||||
return (c1 != '[' || c != ')') && (c1 != 'i' || c != ')') ? 0 : 2;
|
||||
return (((c1 != '[') || (c != ')')) && ((c1 != 'i') || (c != ')'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'e') {
|
||||
return c1 != '3' && c1 != '\u20AC' ? 0 : 1;
|
||||
return ((c1 != '3') && (c1 != '\u20AC')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'f') {
|
||||
if (c1 == 'p' && c == 'h') {
|
||||
if ((c1 == 'p') && (c == 'h')) {
|
||||
return 2;
|
||||
}
|
||||
return c1 != '\243' ? 0 : 1;
|
||||
return (c1 != '\243') ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'g') {
|
||||
return c1 != '9' && c1 != '6' && c1 != 'q' ? 0 : 1;
|
||||
return ((c1 != '9') && (c1 != '6') && (c1 != 'q')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'h') {
|
||||
return c1 != '#' ? 0 : 1;
|
||||
return (c1 != '#') ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'i') {
|
||||
return c1 != 'y' && c1 != 'l' && c1 != 'j' && c1 != '1' && c1 != '!' && c1 != ':' && c1 != ';' && c1 != '|' ? 0 : 1;
|
||||
return ((c1 != 'y') && (c1 != 'l') && (c1 != 'j') && (c1 != '1') && (c1 != '!') && (c1 != ':') && (c1 != ';') && (c1 != '|')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'j') {
|
||||
return 0;
|
||||
@@ -710,21 +710,21 @@ public class Censor {
|
||||
return 0;
|
||||
}
|
||||
if (c2 == 'l') {
|
||||
return c1 != '1' && c1 != '|' && c1 != 'i' ? 0 : 1;
|
||||
return ((c1 != '1') && (c1 != '|') && (c1 != 'i')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'm') {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (c2 >= 'n' && c2 <= 'z') {
|
||||
if ((c2 >= 'n') && (c2 <= 'z')) {
|
||||
if (c2 == 'n') {
|
||||
return 0;
|
||||
}
|
||||
if (c2 == 'o') {
|
||||
if (c1 == '0' || c1 == '*') {
|
||||
if ((c1 == '0') || (c1 == '*')) {
|
||||
return 1;
|
||||
}
|
||||
return (c1 != '(' || c != ')') && (c1 != '[' || c != ']') && (c1 != '{' || c != '}') && (c1 != '<' || c != '>') ? 0 : 2;
|
||||
return (((c1 != '(') || (c != ')')) && ((c1 != '[') || (c != ']')) && ((c1 != '{') || (c != '}')) && ((c1 != '<') || (c != '>'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'p') {
|
||||
return 0;
|
||||
@@ -736,25 +736,25 @@ public class Censor {
|
||||
return 0;
|
||||
}
|
||||
if (c2 == 's') {
|
||||
return c1 != '5' && c1 != 'z' && c1 != '$' && c1 != '2' ? 0 : 1;
|
||||
return ((c1 != '5') && (c1 != 'z') && (c1 != '$') && (c1 != '2')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 't') {
|
||||
return c1 != '7' && c1 != '+' ? 0 : 1;
|
||||
return ((c1 != '7') && (c1 != '+')) ? 0 : 1;
|
||||
}
|
||||
if (c2 == 'u') {
|
||||
if (c1 == 'v') {
|
||||
return 1;
|
||||
}
|
||||
return (c1 != '\\' || c != '/') && (c1 != '\\' || c != '|') && (c1 != '|' || c != '/') ? 0 : 2;
|
||||
return (((c1 != '\\') || (c != '/')) && ((c1 != '\\') || (c != '|')) && ((c1 != '|') || (c != '/'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'v') {
|
||||
return (c1 != '\\' || c != '/') && (c1 != '\\' || c != '|') && (c1 != '|' || c != '/') ? 0 : 2;
|
||||
return (((c1 != '\\') || (c != '/')) && ((c1 != '\\') || (c != '|')) && ((c1 != '|') || (c != '/'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'w') {
|
||||
return c1 != 'v' || c != 'v' ? 0 : 2;
|
||||
return ((c1 != 'v') || (c != 'v')) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'x') {
|
||||
return (c1 != ')' || c != '(') && (c1 != '}' || c != '{') && (c1 != ']' || c != '[') && (c1 != '>' || c != '<') ? 0 : 2;
|
||||
return (((c1 != ')') || (c != '(')) && ((c1 != '}') || (c != '{')) && ((c1 != ']') || (c != '[')) && ((c1 != '>') || (c != '<'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == 'y') {
|
||||
return 0;
|
||||
@@ -763,40 +763,40 @@ public class Censor {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (c2 >= '0' && c2 <= '9') {
|
||||
if ((c2 >= '0') && (c2 <= '9')) {
|
||||
if (c2 == '0') {
|
||||
if (c1 == 'o' || c1 == 'O') {
|
||||
if ((c1 == 'o') || (c1 == 'O')) {
|
||||
return 1;
|
||||
}
|
||||
return (c1 != '(' || c != ')') && (c1 != '{' || c != '}') && (c1 != '[' || c != ']') ? 0 : 2;
|
||||
return (((c1 != '(') || (c != ')')) && ((c1 != '{') || (c != '}')) && ((c1 != '[') || (c != ']'))) ? 0 : 2;
|
||||
}
|
||||
if (c2 == '1') {
|
||||
return c1 != 'l' ? 0 : 1;
|
||||
return (c1 != 'l') ? 0 : 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (c2 == ',') {
|
||||
return c1 != '.' ? 0 : 1;
|
||||
return (c1 != '.') ? 0 : 1;
|
||||
}
|
||||
if (c2 == '.') {
|
||||
return c1 != ',' ? 0 : 1;
|
||||
return (c1 != ',') ? 0 : 1;
|
||||
}
|
||||
if (c2 == '!') {
|
||||
return c1 != 'i' ? 0 : 1;
|
||||
return (c1 != 'i') ? 0 : 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static byte method513(char c) {
|
||||
if (c >= 'a' && c <= 'z') {
|
||||
if ((c >= 'a') && (c <= 'z')) {
|
||||
return (byte) ((c - 97) + 1);
|
||||
}
|
||||
if (c == '\'') {
|
||||
return 28;
|
||||
}
|
||||
if (c >= '0' && c <= '9') {
|
||||
if ((c >= '0') && (c <= '9')) {
|
||||
return (byte) ((c - 48) + 29);
|
||||
} else {
|
||||
return 27;
|
||||
@@ -810,7 +810,7 @@ public class Censor {
|
||||
int i1 = 0;
|
||||
while ((j = method515(ac, k)) != -1) {
|
||||
boolean flag = false;
|
||||
for (int j1 = k; j1 >= 0 && j1 < j && !flag; j1++) {
|
||||
for (int j1 = k; (j1 >= 0) && (j1 < j) && !flag; j1++) {
|
||||
if (!method517(ac[j1]) && !method518(ac[j1])) {
|
||||
flag = true;
|
||||
}
|
||||
@@ -824,9 +824,9 @@ public class Censor {
|
||||
k = method516(ac, j);
|
||||
int k1 = 0;
|
||||
for (int l1 = j; l1 < k; l1++) {
|
||||
k1 = (k1 * 10 + ac[l1]) - 48;
|
||||
k1 = ((k1 * 10) + ac[l1]) - 48;
|
||||
}
|
||||
if (k1 > 255 || k - j > 8) {
|
||||
if ((k1 > 255) || ((k - j) > 8)) {
|
||||
l = 0;
|
||||
} else {
|
||||
l++;
|
||||
@@ -841,8 +841,8 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static int method515(char[] ac, int i) {
|
||||
for (int k = i; k < ac.length && k >= 0; k++) {
|
||||
if (ac[k] >= '0' && ac[k] <= '9') {
|
||||
for (int k = i; (k < ac.length) && (k >= 0); k++) {
|
||||
if ((ac[k] >= '0') && (ac[k] <= '9')) {
|
||||
return k;
|
||||
}
|
||||
}
|
||||
@@ -850,8 +850,8 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static int method516(char[] ac, int j) {
|
||||
for (int k = j; k < ac.length && k >= 0; k++) {
|
||||
if (ac[k] < '0' || ac[k] > '9') {
|
||||
for (int k = j; (k < ac.length) && (k >= 0); k++) {
|
||||
if ((ac[k] < '0') || (ac[k] > '9')) {
|
||||
return k;
|
||||
}
|
||||
}
|
||||
@@ -863,32 +863,32 @@ public class Censor {
|
||||
}
|
||||
|
||||
public static boolean method518(char c) {
|
||||
if (c < 'a' || c > 'z') {
|
||||
if ((c < 'a') || (c > 'z')) {
|
||||
return true;
|
||||
}
|
||||
return c == 'v' || c == 'x' || c == 'j' || c == 'q' || c == 'z';
|
||||
return (c == 'v') || (c == 'x') || (c == 'j') || (c == 'q') || (c == 'z');
|
||||
}
|
||||
|
||||
public static boolean method519(char c) {
|
||||
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
|
||||
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'));
|
||||
}
|
||||
|
||||
public static boolean method520(char c) {
|
||||
return c >= '0' && c <= '9';
|
||||
return (c >= '0') && (c <= '9');
|
||||
}
|
||||
|
||||
public static boolean method521(char c) {
|
||||
return c >= 'a' && c <= 'z';
|
||||
return (c >= 'a') && (c <= 'z');
|
||||
}
|
||||
|
||||
public static boolean method522(char c) {
|
||||
return c >= 'A' && c <= 'Z';
|
||||
return (c >= 'A') && (c <= 'Z');
|
||||
}
|
||||
|
||||
public static boolean method523(char[] ac) {
|
||||
boolean flag = true;
|
||||
for (char c : ac) {
|
||||
if (!method520(c) && c != 0) {
|
||||
if (!method520(c) && (c != 0)) {
|
||||
flag = false;
|
||||
break;
|
||||
}
|
||||
@@ -899,7 +899,7 @@ public class Censor {
|
||||
int j = method524(ac);
|
||||
int k = 0;
|
||||
int l = anIntArray620.length - 1;
|
||||
if (j == anIntArray620[k] || j == anIntArray620[l]) {
|
||||
if ((j == anIntArray620[k]) || (j == anIntArray620[l])) {
|
||||
return true;
|
||||
}
|
||||
do {
|
||||
@@ -912,7 +912,7 @@ public class Censor {
|
||||
} else {
|
||||
k = i1;
|
||||
}
|
||||
} while (k != l && k + 1 != l);
|
||||
} while ((k != l) && ((k + 1) != l));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -923,12 +923,12 @@ public class Censor {
|
||||
int k = 0;
|
||||
for (int l = 0; l < ac.length; l++) {
|
||||
char c = ac[ac.length - l - 1];
|
||||
if (c >= 'a' && c <= 'z') {
|
||||
k = k * 38 + ((c - 97) + 1);
|
||||
if ((c >= 'a') && (c <= 'z')) {
|
||||
k = (k * 38) + ((c - 97) + 1);
|
||||
} else if (c == '\'') {
|
||||
k = k * 38 + 27;
|
||||
} else if (c >= '0' && c <= '9') {
|
||||
k = k * 38 + ((c - 48) + 28);
|
||||
k = (k * 38) + 27;
|
||||
} else if ((c >= '0') && (c <= '9')) {
|
||||
k = (k * 38) + ((c - 48) + 28);
|
||||
} else if (c != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class Component {
|
||||
component.aByte254 = (byte) buffer.method408();
|
||||
component.anInt230 = buffer.method408();
|
||||
if (component.anInt230 != 0) {
|
||||
component.anInt230 = (component.anInt230 - 1 << 8) + buffer.method408();
|
||||
component.anInt230 = ((component.anInt230 - 1) << 8) + buffer.method408();
|
||||
} else {
|
||||
component.anInt230 = -1;
|
||||
}
|
||||
@@ -154,7 +154,7 @@ public class Component {
|
||||
component.anIntArray215[j2] = buffer.method411();
|
||||
component.anIntArray247[j2] = buffer.method411();
|
||||
String s1 = buffer.method415();
|
||||
if (archive_1 != null && s1.length() > 0) {
|
||||
if ((archive_1 != null) && (s1.length() > 0)) {
|
||||
int i5 = s1.lastIndexOf(",");
|
||||
component.aImageArray209[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), archive_1, s1.substring(0, i5));
|
||||
}
|
||||
@@ -171,7 +171,7 @@ public class Component {
|
||||
if (component.anInt262 == 3) {
|
||||
component.aBoolean227 = buffer.method408() == 1;
|
||||
}
|
||||
if (component.anInt262 == 4 || component.anInt262 == 1) {
|
||||
if ((component.anInt262 == 4) || (component.anInt262 == 1)) {
|
||||
component.aBoolean223 = buffer.method408() == 1;
|
||||
int k2 = buffer.method408();
|
||||
if (aclass30_sub2_sub1_sub4 != null) {
|
||||
@@ -183,22 +183,22 @@ public class Component {
|
||||
component.aString248 = buffer.method415();
|
||||
component.aString228 = buffer.method415();
|
||||
}
|
||||
if (component.anInt262 == 1 || component.anInt262 == 3 || component.anInt262 == 4) {
|
||||
if ((component.anInt262 == 1) || (component.anInt262 == 3) || (component.anInt262 == 4)) {
|
||||
component.anInt232 = buffer.method413();
|
||||
}
|
||||
if (component.anInt262 == 3 || component.anInt262 == 4) {
|
||||
if ((component.anInt262 == 3) || (component.anInt262 == 4)) {
|
||||
component.anInt219 = buffer.method413();
|
||||
component.anInt216 = buffer.method413();
|
||||
component.anInt239 = buffer.method413();
|
||||
}
|
||||
if (component.anInt262 == 5) {
|
||||
String s = buffer.method415();
|
||||
if (archive_1 != null && s.length() > 0) {
|
||||
if ((archive_1 != null) && (s.length() > 0)) {
|
||||
int i4 = s.lastIndexOf(",");
|
||||
component.aImage_207 = method207(Integer.parseInt(s.substring(i4 + 1)), archive_1, s.substring(0, i4));
|
||||
}
|
||||
s = buffer.method415();
|
||||
if (archive_1 != null && s.length() > 0) {
|
||||
if ((archive_1 != null) && (s.length() > 0)) {
|
||||
int j4 = s.lastIndexOf(",");
|
||||
component.aImage_260 = method207(Integer.parseInt(s.substring(j4 + 1)), archive_1, s.substring(0, j4));
|
||||
}
|
||||
@@ -207,22 +207,22 @@ public class Component {
|
||||
int l = buffer.method408();
|
||||
if (l != 0) {
|
||||
component.anInt233 = 1;
|
||||
component.anInt234 = (l - 1 << 8) + buffer.method408();
|
||||
component.anInt234 = ((l - 1) << 8) + buffer.method408();
|
||||
}
|
||||
l = buffer.method408();
|
||||
if (l != 0) {
|
||||
component.anInt255 = 1;
|
||||
component.anInt256 = (l - 1 << 8) + buffer.method408();
|
||||
component.anInt256 = ((l - 1) << 8) + buffer.method408();
|
||||
}
|
||||
l = buffer.method408();
|
||||
if (l != 0) {
|
||||
component.anInt257 = (l - 1 << 8) + buffer.method408();
|
||||
component.anInt257 = ((l - 1) << 8) + buffer.method408();
|
||||
} else {
|
||||
component.anInt257 = -1;
|
||||
}
|
||||
l = buffer.method408();
|
||||
if (l != 0) {
|
||||
component.anInt258 = (l - 1 << 8) + buffer.method408();
|
||||
component.anInt258 = ((l - 1) << 8) + buffer.method408();
|
||||
} else {
|
||||
component.anInt258 = -1;
|
||||
}
|
||||
@@ -251,12 +251,12 @@ public class Component {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (component.anInt217 == 2 || component.anInt262 == 2) {
|
||||
if ((component.anInt217 == 2) || (component.anInt262 == 2)) {
|
||||
component.aString222 = buffer.method415();
|
||||
component.aString218 = buffer.method415();
|
||||
component.anInt237 = buffer.method410();
|
||||
}
|
||||
if (component.anInt217 == 1 || component.anInt217 == 4 || component.anInt217 == 5 || component.anInt217 == 6) {
|
||||
if ((component.anInt217 == 1) || (component.anInt217 == 4) || (component.anInt217 == 5) || (component.anInt217 == 6)) {
|
||||
component.aString221 = buffer.method415();
|
||||
if (component.aString221.length() == 0) {
|
||||
if (component.anInt217 == 1) {
|
||||
@@ -294,7 +294,7 @@ public class Component {
|
||||
|
||||
public static void method208(int i, int j, Model model) {
|
||||
A_CACHE___264.method224();
|
||||
if (model != null && j != 4) {
|
||||
if ((model != null) && (j != 4)) {
|
||||
A_CACHE___264.method223(model, (j << 16) + i);
|
||||
}
|
||||
}
|
||||
@@ -344,11 +344,11 @@ public class Component {
|
||||
if (model == null) {
|
||||
return null;
|
||||
}
|
||||
if (k == -1 && j == -1 && model.faceColor == null) {
|
||||
if ((k == -1) && (j == -1) && (model.faceColor == null)) {
|
||||
return model;
|
||||
}
|
||||
Model model_1 = new Model(true, SeqFrame.isNull(k) & SeqFrame.isNull(j), false, model);
|
||||
if (k != -1 || j != -1) {
|
||||
if ((k != -1) || (j != -1)) {
|
||||
model_1.createLabelReferences();
|
||||
}
|
||||
if (k != -1) {
|
||||
|
||||
@@ -96,7 +96,7 @@ public class Connection implements Runnable {
|
||||
for (int l = 0; l < i; l++) {
|
||||
aByteArray424[anInt426] = abyte0[l + k];
|
||||
anInt426 = (anInt426 + 1) % 5000;
|
||||
if (anInt426 == (anInt425 + 4900) % 5000) {
|
||||
if (anInt426 == ((anInt425 + 4900) % 5000)) {
|
||||
throw new IOException("buffer overflow");
|
||||
}
|
||||
}
|
||||
|
||||
+33
-33
@@ -69,26 +69,26 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
y = top;
|
||||
}
|
||||
|
||||
if (x + width > right) {
|
||||
if ((x + width) > right) {
|
||||
width = right - x;
|
||||
}
|
||||
|
||||
if (y + height > bottom) {
|
||||
if ((y + height) > bottom) {
|
||||
height = bottom - y;
|
||||
}
|
||||
|
||||
int invAlpha = 256 - alpha;
|
||||
int r0 = (rgb >> 16 & 0xff) * alpha;
|
||||
int g0 = (rgb >> 8 & 0xff) * alpha;
|
||||
int r0 = ((rgb >> 16) & 0xff) * alpha;
|
||||
int g0 = ((rgb >> 8) & 0xff) * alpha;
|
||||
int b0 = (rgb & 0xff) * alpha;
|
||||
|
||||
int step = Draw2D.width - width;
|
||||
int offset = x + y * Draw2D.width;
|
||||
int offset = x + (y * Draw2D.width);
|
||||
|
||||
for (int i = 0; i < height; i++) {
|
||||
for (int j = -width; j < 0; j++) {
|
||||
int r1 = (pixels[offset] >> 16 & 0xff) * invAlpha;
|
||||
int g1 = (pixels[offset] >> 8 & 0xff) * invAlpha;
|
||||
int r1 = ((pixels[offset] >> 16) & 0xff) * invAlpha;
|
||||
int g1 = ((pixels[offset] >> 8) & 0xff) * invAlpha;
|
||||
int b1 = (pixels[offset] & 0xff) * invAlpha;
|
||||
pixels[offset++] = (((r0 + r1) >> 8) << 16) + (((g0 + g1) >> 8) << 8) + ((b0 + b1) >> 8);
|
||||
}
|
||||
@@ -107,16 +107,16 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
y = top;
|
||||
}
|
||||
|
||||
if (x + width > right) {
|
||||
if ((x + width) > right) {
|
||||
width = right - x;
|
||||
}
|
||||
|
||||
if (y + height > bottom) {
|
||||
if ((y + height) > bottom) {
|
||||
height = bottom - y;
|
||||
}
|
||||
|
||||
int step = Draw2D.width - width;
|
||||
int offset = x + y * Draw2D.width;
|
||||
int offset = x + (y * Draw2D.width);
|
||||
|
||||
for (int i = -height; i < 0; i++) {
|
||||
for (int j = -width; j < 0; j++) {
|
||||
@@ -143,7 +143,7 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
}
|
||||
|
||||
public static void drawLineX(int x, int y, int length, int rgb) {
|
||||
if (y < top || y >= bottom) {
|
||||
if ((y < top) || (y >= bottom)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -152,11 +152,11 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
x = left;
|
||||
}
|
||||
|
||||
if (x + length > right) {
|
||||
if ((x + length) > right) {
|
||||
length = right - x;
|
||||
}
|
||||
|
||||
int offset = x + y * width;
|
||||
int offset = x + (y * width);
|
||||
|
||||
for (int i = 0; i < length; i++) {
|
||||
pixels[offset + i] = rgb;
|
||||
@@ -164,7 +164,7 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
}
|
||||
|
||||
public static void drawLineX(int x, int y, int length, int rgb, int alpha) {
|
||||
if (y < top || y >= bottom) {
|
||||
if ((y < top) || (y >= bottom)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -173,27 +173,27 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
x = left;
|
||||
}
|
||||
|
||||
if (x + length > right) {
|
||||
if ((x + length) > right) {
|
||||
length = right - x;
|
||||
}
|
||||
|
||||
int invAlpha = 256 - alpha;
|
||||
int r0 = (rgb >> 16 & 0xff) * alpha;
|
||||
int g0 = (rgb >> 8 & 0xff) * alpha;
|
||||
int r0 = ((rgb >> 16) & 0xff) * alpha;
|
||||
int g0 = ((rgb >> 8) & 0xff) * alpha;
|
||||
int b0 = (rgb & 0xff) * alpha;
|
||||
|
||||
int offset = x + y * width;
|
||||
int offset = x + (y * width);
|
||||
|
||||
for (int i = 0; i < length; i++) {
|
||||
int r1 = (pixels[offset] >> 16 & 0xff) * invAlpha;
|
||||
int g1 = (pixels[offset] >> 8 & 0xff) * invAlpha;
|
||||
int r1 = ((pixels[offset] >> 16) & 0xff) * invAlpha;
|
||||
int g1 = ((pixels[offset] >> 8) & 0xff) * invAlpha;
|
||||
int b1 = (pixels[offset] & 0xff) * invAlpha;
|
||||
pixels[offset++] = ((r0 + r1 >> 8) << 16) + ((g0 + g1 >> 8) << 8) + (b0 + b1 >> 8);
|
||||
pixels[offset++] = (((r0 + r1) >> 8) << 16) + (((g0 + g1) >> 8) << 8) + ((b0 + b1) >> 8);
|
||||
}
|
||||
}
|
||||
|
||||
public static void drawLineY(int y, int rgb, int length, int x) {
|
||||
if (x < left || x >= right) {
|
||||
if ((x < left) || (x >= right)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -202,19 +202,19 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
y = top;
|
||||
}
|
||||
|
||||
if (y + length > bottom) {
|
||||
if ((y + length) > bottom) {
|
||||
length = bottom - y;
|
||||
}
|
||||
|
||||
int offset = x + y * width;
|
||||
int offset = x + (y * width);
|
||||
|
||||
for (int i = 0; i < length; i++) {
|
||||
pixels[offset + i * width] = rgb;
|
||||
pixels[offset + (i * width)] = rgb;
|
||||
}
|
||||
}
|
||||
|
||||
public static void drawLineY(int rgb, int x, int alpha, int y, int length) {
|
||||
if (x < left || x >= right) {
|
||||
if ((x < left) || (x >= right)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -223,22 +223,22 @@ public class Draw2D extends DoublyLinkedListNode {
|
||||
y = top;
|
||||
}
|
||||
|
||||
if (y + length > bottom) {
|
||||
if ((y + length) > bottom) {
|
||||
length = bottom - y;
|
||||
}
|
||||
|
||||
int invAlpha = 256 - alpha;
|
||||
int r0 = (rgb >> 16 & 0xff) * alpha;
|
||||
int g0 = (rgb >> 8 & 0xff) * alpha;
|
||||
int r0 = ((rgb >> 16) & 0xff) * alpha;
|
||||
int g0 = ((rgb >> 8) & 0xff) * alpha;
|
||||
int b0 = (rgb & 0xff) * alpha;
|
||||
|
||||
int offset = x + y * width;
|
||||
int offset = x + (y * width);
|
||||
|
||||
for (int i = 0; i < length; i++) {
|
||||
int r1 = (pixels[offset] >> 16 & 0xff) * invAlpha;
|
||||
int g1 = (pixels[offset] >> 8 & 0xff) * invAlpha;
|
||||
int r1 = ((pixels[offset] >> 16) & 0xff) * invAlpha;
|
||||
int g1 = ((pixels[offset] >> 8) & 0xff) * invAlpha;
|
||||
int b1 = (pixels[offset] & 0xff) * invAlpha;
|
||||
pixels[offset] = ((r0 + r1 >> 8) << 16) + ((g0 + g1 >> 8) << 8) + (b0 + b1 >> 8);
|
||||
pixels[offset] = (((r0 + r1) >> 8) << 16) + (((g0 + g1) >> 8) << 8) + ((b0 + b1) >> 8);
|
||||
offset += width;
|
||||
}
|
||||
}
|
||||
|
||||
+143
-143
@@ -112,7 +112,7 @@ public class Draw3D {
|
||||
for (int j = 0; j < 50; j++) {
|
||||
try {
|
||||
aImageArray1474[j] = new Image8(archive, String.valueOf(j), 0);
|
||||
if (aBoolean1461 && aImageArray1474[j].anInt1456 == 128) {
|
||||
if (aBoolean1461 && (aImageArray1474[j].anInt1456 == 128)) {
|
||||
aImageArray1474[j].method356();
|
||||
} else {
|
||||
aImageArray1474[j].method357();
|
||||
@@ -132,11 +132,11 @@ public class Draw3D {
|
||||
int i1 = 0;
|
||||
int j1 = anIntArrayArray1483[i].length;
|
||||
for (int k1 = 0; k1 < j1; k1++) {
|
||||
k += anIntArrayArray1483[i][k1] >> 16 & 0xff;
|
||||
l += anIntArrayArray1483[i][k1] >> 8 & 0xff;
|
||||
k += (anIntArrayArray1483[i][k1] >> 16) & 0xff;
|
||||
l += (anIntArrayArray1483[i][k1] >> 8) & 0xff;
|
||||
i1 += anIntArrayArray1483[i][k1] & 0xff;
|
||||
}
|
||||
int l1 = (k / j1 << 16) + (l / j1 << 8) + i1 / j1;
|
||||
int l1 = ((k / j1) << 16) + ((l / j1) << 8) + (i1 / j1);
|
||||
l1 = method373(l1, 1.3999999999999999D);
|
||||
if (l1 == 0) {
|
||||
l1 = 1;
|
||||
@@ -166,7 +166,7 @@ public class Draw3D {
|
||||
int j = 0;
|
||||
int k = -1;
|
||||
for (int l = 0; l < anInt1473; l++) {
|
||||
if (anIntArrayArray1479[l] != null && (anIntArray1480[l] < j || k == -1)) {
|
||||
if ((anIntArrayArray1479[l] != null) && ((anIntArray1480[l] < j) || (k == -1))) {
|
||||
j = anIntArray1480[l];
|
||||
k = l;
|
||||
}
|
||||
@@ -184,9 +184,9 @@ public class Draw3D {
|
||||
if (i2 == 0) {
|
||||
textureTranslucent[i] = true;
|
||||
}
|
||||
ai[4096 + i1] = i2 - (i2 >>> 3) & 0xf8f8ff;
|
||||
ai[8192 + i1] = i2 - (i2 >>> 2) & 0xf8f8ff;
|
||||
ai[12288 + i1] = i2 - (i2 >>> 2) - (i2 >>> 3) & 0xf8f8ff;
|
||||
ai[4096 + i1] = (i2 - (i2 >>> 3)) & 0xf8f8ff;
|
||||
ai[8192 + i1] = (i2 - (i2 >>> 2)) & 0xf8f8ff;
|
||||
ai[12288 + i1] = (i2 - (i2 >>> 2) - (i2 >>> 3)) & 0xf8f8ff;
|
||||
}
|
||||
} else {
|
||||
if (image.anInt1452 == 64) {
|
||||
@@ -207,20 +207,20 @@ public class Draw3D {
|
||||
if (k2 == 0) {
|
||||
textureTranslucent[i] = true;
|
||||
}
|
||||
ai[16384 + l1] = k2 - (k2 >>> 3) & 0xf8f8ff;
|
||||
ai[32768 + l1] = k2 - (k2 >>> 2) & 0xf8f8ff;
|
||||
ai[49152 + l1] = k2 - (k2 >>> 2) - (k2 >>> 3) & 0xf8f8ff;
|
||||
ai[16384 + l1] = (k2 - (k2 >>> 3)) & 0xf8f8ff;
|
||||
ai[32768 + l1] = (k2 - (k2 >>> 2)) & 0xf8f8ff;
|
||||
ai[49152 + l1] = (k2 - (k2 >>> 2) - (k2 >>> 3)) & 0xf8f8ff;
|
||||
}
|
||||
}
|
||||
return ai;
|
||||
}
|
||||
|
||||
public static void method372(double d) {
|
||||
d += Math.random() * 0.029999999999999999D - 0.014999999999999999D;
|
||||
d += (Math.random() * 0.029999999999999999D) - 0.014999999999999999D;
|
||||
int j = 0;
|
||||
for (int k = 0; k < 512; k++) {
|
||||
double d1 = (double) (k / 8) / 64D + 0.0078125D;
|
||||
double d2 = (double) (k & 7) / 8D + 0.0625D;
|
||||
double d1 = ((double) (k / 8) / 64D) + 0.0078125D;
|
||||
double d2 = ((double) (k & 7) / 8D) + 0.0625D;
|
||||
for (int k1 = 0; k1 < 128; k1++) {
|
||||
double d3 = (double) k1 / 128D;
|
||||
double d4 = d3;
|
||||
@@ -231,9 +231,9 @@ public class Draw3D {
|
||||
if (d3 < 0.5D) {
|
||||
d7 = d3 * (1.0D + d2);
|
||||
} else {
|
||||
d7 = (d3 + d2) - d3 * d2;
|
||||
d7 = (d3 + d2) - (d3 * d2);
|
||||
}
|
||||
double d8 = 2D * d3 - d7;
|
||||
double d8 = (2D * d3) - d7;
|
||||
double d9 = d1 + 0.33333333333333331D;
|
||||
if (d9 > 1.0D) {
|
||||
d9--;
|
||||
@@ -242,30 +242,30 @@ public class Draw3D {
|
||||
if (d11 < 0.0D) {
|
||||
d11++;
|
||||
}
|
||||
if (6D * d9 < 1.0D) {
|
||||
d4 = d8 + (d7 - d8) * 6D * d9;
|
||||
} else if (2D * d9 < 1.0D) {
|
||||
if ((6D * d9) < 1.0D) {
|
||||
d4 = d8 + ((d7 - d8) * 6D * d9);
|
||||
} else if ((2D * d9) < 1.0D) {
|
||||
d4 = d7;
|
||||
} else if (3D * d9 < 2D) {
|
||||
d4 = d8 + (d7 - d8) * (0.66666666666666663D - d9) * 6D;
|
||||
} else if ((3D * d9) < 2D) {
|
||||
d4 = d8 + ((d7 - d8) * (0.66666666666666663D - d9) * 6D);
|
||||
} else {
|
||||
d4 = d8;
|
||||
}
|
||||
if (6D * d1 < 1.0D) {
|
||||
d5 = d8 + (d7 - d8) * 6D * d1;
|
||||
} else if (2D * d1 < 1.0D) {
|
||||
if ((6D * d1) < 1.0D) {
|
||||
d5 = d8 + ((d7 - d8) * 6D * d1);
|
||||
} else if ((2D * d1) < 1.0D) {
|
||||
d5 = d7;
|
||||
} else if (3D * d1 < 2D) {
|
||||
d5 = d8 + (d7 - d8) * (0.66666666666666663D - d1) * 6D;
|
||||
} else if ((3D * d1) < 2D) {
|
||||
d5 = d8 + ((d7 - d8) * (0.66666666666666663D - d1) * 6D);
|
||||
} else {
|
||||
d5 = d8;
|
||||
}
|
||||
if (6D * d11 < 1.0D) {
|
||||
d6 = d8 + (d7 - d8) * 6D * d11;
|
||||
} else if (2D * d11 < 1.0D) {
|
||||
if ((6D * d11) < 1.0D) {
|
||||
d6 = d8 + ((d7 - d8) * 6D * d11);
|
||||
} else if ((2D * d11) < 1.0D) {
|
||||
d6 = d7;
|
||||
} else if (3D * d11 < 2D) {
|
||||
d6 = d8 + (d7 - d8) * (0.66666666666666663D - d11) * 6D;
|
||||
} else if ((3D * d11) < 2D) {
|
||||
d6 = d8 + ((d7 - d8) * (0.66666666666666663D - d11) * 6D);
|
||||
} else {
|
||||
d6 = d8;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ public class Draw3D {
|
||||
anIntArrayArray1483[l] = new int[ai.length];
|
||||
for (int j1 = 0; j1 < ai.length; j1++) {
|
||||
anIntArrayArray1483[l][j1] = method373(ai[j1], d);
|
||||
if ((anIntArrayArray1483[l][j1] & 0xf8f8ff) == 0 && j1 != 0) {
|
||||
if (((anIntArrayArray1483[l][j1] & 0xf8f8ff) == 0) && (j1 != 0)) {
|
||||
anIntArrayArray1483[l][j1] = 1;
|
||||
}
|
||||
}
|
||||
@@ -300,7 +300,7 @@ public class Draw3D {
|
||||
|
||||
public static int method373(int i, double d) {
|
||||
double d1 = (double) (i >> 16) / 256D;
|
||||
double d2 = (double) (i >> 8 & 0xff) / 256D;
|
||||
double d2 = (double) ((i >> 8) & 0xff) / 256D;
|
||||
double d3 = (double) (i & 0xff) / 256D;
|
||||
d1 = Math.pow(d1, d);
|
||||
d2 = Math.pow(d2, d);
|
||||
@@ -334,21 +334,21 @@ public class Draw3D {
|
||||
int colorStepAC = 0;
|
||||
|
||||
if (yB != yA) {
|
||||
xStepAB = (xB - xA << 16) / (yB - yA);
|
||||
colorStepAB = (colorB - colorA << 15) / (yB - yA);
|
||||
xStepAB = ((xB - xA) << 16) / (yB - yA);
|
||||
colorStepAB = ((colorB - colorA) << 15) / (yB - yA);
|
||||
}
|
||||
|
||||
if (yC != yB) {
|
||||
xStepBC = (xC - xB << 16) / (yC - yB);
|
||||
colorStepBC = (colorC - colorB << 15) / (yC - yB);
|
||||
xStepBC = ((xC - xB) << 16) / (yC - yB);
|
||||
colorStepBC = ((colorC - colorB) << 15) / (yC - yB);
|
||||
}
|
||||
|
||||
if (yC != yA) {
|
||||
xStepAC = (xA - xC << 16) / (yA - yC);
|
||||
colorStepAC = (colorA - colorC << 15) / (yA - yC);
|
||||
xStepAC = ((xA - xC) << 16) / (yA - yC);
|
||||
colorStepAC = ((colorA - colorC) << 15) / (yA - yC);
|
||||
}
|
||||
|
||||
if (yA <= yB && yA <= yC) {
|
||||
if ((yA <= yB) && (yA <= yC)) {
|
||||
if (yA >= Draw2D.bottom) {
|
||||
return;
|
||||
}
|
||||
@@ -359,8 +359,8 @@ public class Draw3D {
|
||||
yC = Draw2D.bottom;
|
||||
}
|
||||
if (yB < yC) {
|
||||
xC = xA <<= 16;
|
||||
colorC = colorA <<= 15;
|
||||
xC = (xA <<= 16);
|
||||
colorC = (colorA <<= 15);
|
||||
if (yA < 0) {
|
||||
xC -= xStepAC * yA;
|
||||
xA -= xStepAB * yA;
|
||||
@@ -375,7 +375,7 @@ public class Draw3D {
|
||||
colorB -= colorStepBC * yB;
|
||||
yB = 0;
|
||||
}
|
||||
if (yA != yB && xStepAC < xStepAB || yA == yB && xStepAC > xStepBC) {
|
||||
if (((yA != yB) && (xStepAC < xStepAB)) || ((yA == yB) && (xStepAC > xStepBC))) {
|
||||
yC -= yB;
|
||||
yB -= yA;
|
||||
for (yA = anIntArray1472[yA]; --yB >= 0; yA += Draw2D.width) {
|
||||
@@ -414,8 +414,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xB = xA <<= 16;
|
||||
colorB = colorA <<= 15;
|
||||
xB = (xA <<= 16);
|
||||
colorB = (colorA <<= 15);
|
||||
if (yA < 0) {
|
||||
xB -= xStepAC * yA;
|
||||
xA -= xStepAB * yA;
|
||||
@@ -430,7 +430,7 @@ public class Draw3D {
|
||||
colorC -= colorStepBC * yC;
|
||||
yC = 0;
|
||||
}
|
||||
if (yA != yC && xStepAC < xStepAB || yA == yC && xStepBC > xStepAB) {
|
||||
if (((yA != yC) && (xStepAC < xStepAB)) || ((yA == yC) && (xStepBC > xStepAB))) {
|
||||
yB -= yC;
|
||||
yC -= yA;
|
||||
for (yA = anIntArray1472[yA]; --yC >= 0; yA += Draw2D.width) {
|
||||
@@ -480,8 +480,8 @@ public class Draw3D {
|
||||
yA = Draw2D.bottom;
|
||||
}
|
||||
if (yC < yA) {
|
||||
xA = xB <<= 16;
|
||||
colorA = colorB <<= 15;
|
||||
xA = (xB <<= 16);
|
||||
colorA = (colorB <<= 15);
|
||||
if (yB < 0) {
|
||||
xA -= xStepAB * yB;
|
||||
xB -= xStepBC * yB;
|
||||
@@ -496,7 +496,7 @@ public class Draw3D {
|
||||
colorC -= colorStepAC * yC;
|
||||
yC = 0;
|
||||
}
|
||||
if (yB != yC && xStepAB < xStepBC || yB == yC && xStepAB > xStepAC) {
|
||||
if (((yB != yC) && (xStepAB < xStepBC)) || ((yB == yC) && (xStepAB > xStepAC))) {
|
||||
yA -= yC;
|
||||
yC -= yB;
|
||||
for (yB = anIntArray1472[yB]; --yC >= 0; yB += Draw2D.width) {
|
||||
@@ -535,8 +535,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xC = xB <<= 16;
|
||||
colorC = colorB <<= 15;
|
||||
xC = (xB <<= 16);
|
||||
colorC = (colorB <<= 15);
|
||||
if (yB < 0) {
|
||||
xC -= xStepAB * yB;
|
||||
xB -= xStepBC * yB;
|
||||
@@ -600,8 +600,8 @@ public class Draw3D {
|
||||
yB = Draw2D.bottom;
|
||||
}
|
||||
if (yA < yB) {
|
||||
xB = xC <<= 16;
|
||||
colorB = colorC <<= 15;
|
||||
xB = (xC <<= 16);
|
||||
colorB = (colorC <<= 15);
|
||||
if (yC < 0) {
|
||||
xB -= xStepBC * yC;
|
||||
xC -= xStepAC * yC;
|
||||
@@ -655,8 +655,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xA = xC <<= 16;
|
||||
colorA = colorC <<= 15;
|
||||
xA = (xC <<= 16);
|
||||
colorA = (colorC <<= 15);
|
||||
if (yC < 0) {
|
||||
xA -= xStepBC * yC;
|
||||
xC -= xStepAC * yC;
|
||||
@@ -729,7 +729,7 @@ public class Draw3D {
|
||||
int colorStep;
|
||||
|
||||
if (clipX) {
|
||||
if (rightX - leftX > 3) {
|
||||
if ((rightX - leftX) > 3) {
|
||||
colorStep = (rightColor - leftColor) / (rightX - leftX);
|
||||
} else {
|
||||
colorStep = 0;
|
||||
@@ -749,7 +749,7 @@ public class Draw3D {
|
||||
}
|
||||
|
||||
dstOff += leftX;
|
||||
length = rightX - leftX >> 2;
|
||||
length = (rightX - leftX) >> 2;
|
||||
colorStep <<= 2;
|
||||
} else {
|
||||
if (leftX >= rightX) {
|
||||
@@ -757,10 +757,10 @@ public class Draw3D {
|
||||
}
|
||||
|
||||
dstOff += leftX;
|
||||
length = rightX - leftX >> 2;
|
||||
length = (rightX - leftX) >> 2;
|
||||
|
||||
if (length > 0) {
|
||||
colorStep = (rightColor - leftColor) * recipreical15[length] >> 15;
|
||||
colorStep = ((rightColor - leftColor) * recipreical15[length]) >> 15;
|
||||
} else {
|
||||
colorStep = 0;
|
||||
}
|
||||
@@ -776,7 +776,7 @@ public class Draw3D {
|
||||
dst[dstOff++] = color;
|
||||
}
|
||||
|
||||
length = rightX - leftX & 3;
|
||||
length = (rightX - leftX) & 3;
|
||||
|
||||
if (length > 0) {
|
||||
color = palette[leftColor >> 8];
|
||||
@@ -792,20 +792,20 @@ public class Draw3D {
|
||||
while (--length >= 0) {
|
||||
color = palette[leftColor >> 8];
|
||||
leftColor += colorStep;
|
||||
color = ((color & 0xff00ff) * invAlpha >> 8 & 0xff00ff) + ((color & 0xff00) * invAlpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
color = ((((color & 0xff00ff) * invAlpha) >> 8) & 0xff00ff) + ((((color & 0xff00) * invAlpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
}
|
||||
|
||||
length = rightX - leftX & 3;
|
||||
length = (rightX - leftX) & 3;
|
||||
|
||||
if (length > 0) {
|
||||
color = palette[leftColor >> 8];
|
||||
color = ((color & 0xff00ff) * invAlpha >> 8 & 0xff00ff) + ((color & 0xff00) * invAlpha >> 8 & 0xff00);
|
||||
color = ((((color & 0xff00ff) * invAlpha) >> 8) & 0xff00ff) + ((((color & 0xff00) * invAlpha) >> 8) & 0xff00);
|
||||
do {
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
} while (--length > 0);
|
||||
}
|
||||
}
|
||||
@@ -848,25 +848,25 @@ public class Draw3D {
|
||||
do {
|
||||
color = palette[leftColor >> 8];
|
||||
leftColor += colorStep;
|
||||
color = ((color & 0xff00ff) * invAlpha >> 8 & 0xff00ff) + ((color & 0xff00) * invAlpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = color + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
color = ((((color & 0xff00ff) * invAlpha) >> 8) & 0xff00ff) + ((((color & 0xff00) * invAlpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = color + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
} while (--length > 0);
|
||||
}
|
||||
|
||||
public static void fillTriangle(int i, int j, int k, int l, int i1, int j1, int k1) {
|
||||
int l1 = 0;
|
||||
if (j != i) {
|
||||
l1 = (i1 - l << 16) / (j - i);
|
||||
l1 = ((i1 - l) << 16) / (j - i);
|
||||
}
|
||||
int i2 = 0;
|
||||
if (k != j) {
|
||||
i2 = (j1 - i1 << 16) / (k - j);
|
||||
i2 = ((j1 - i1) << 16) / (k - j);
|
||||
}
|
||||
int j2 = 0;
|
||||
if (k != i) {
|
||||
j2 = (l - j1 << 16) / (i - k);
|
||||
j2 = ((l - j1) << 16) / (i - k);
|
||||
}
|
||||
if (i <= j && i <= k) {
|
||||
if ((i <= j) && (i <= k)) {
|
||||
if (i >= Draw2D.bottom) {
|
||||
return;
|
||||
}
|
||||
@@ -877,7 +877,7 @@ public class Draw3D {
|
||||
k = Draw2D.bottom;
|
||||
}
|
||||
if (j < k) {
|
||||
j1 = l <<= 16;
|
||||
j1 = (l <<= 16);
|
||||
if (i < 0) {
|
||||
j1 -= j2 * i;
|
||||
l -= l1 * i;
|
||||
@@ -888,7 +888,7 @@ public class Draw3D {
|
||||
i1 -= i2 * j;
|
||||
j = 0;
|
||||
}
|
||||
if (i != j && j2 < l1 || i == j && j2 > i2) {
|
||||
if (((i != j) && (j2 < l1)) || ((i == j) && (j2 > i2))) {
|
||||
k -= j;
|
||||
j -= i;
|
||||
for (i = anIntArray1472[i]; --j >= 0; i += Draw2D.width) {
|
||||
@@ -919,7 +919,7 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
i1 = l <<= 16;
|
||||
i1 = (l <<= 16);
|
||||
if (i < 0) {
|
||||
i1 -= j2 * i;
|
||||
l -= l1 * i;
|
||||
@@ -930,7 +930,7 @@ public class Draw3D {
|
||||
j1 -= i2 * k;
|
||||
k = 0;
|
||||
}
|
||||
if (i != k && j2 < l1 || i == k && i2 > l1) {
|
||||
if (((i != k) && (j2 < l1)) || ((i == k) && (i2 > l1))) {
|
||||
j -= k;
|
||||
k -= i;
|
||||
for (i = anIntArray1472[i]; --k >= 0; i += Draw2D.width) {
|
||||
@@ -972,7 +972,7 @@ public class Draw3D {
|
||||
i = Draw2D.bottom;
|
||||
}
|
||||
if (k < i) {
|
||||
l = i1 <<= 16;
|
||||
l = (i1 <<= 16);
|
||||
if (j < 0) {
|
||||
l -= l1 * j;
|
||||
i1 -= i2 * j;
|
||||
@@ -983,7 +983,7 @@ public class Draw3D {
|
||||
j1 -= j2 * k;
|
||||
k = 0;
|
||||
}
|
||||
if (j != k && l1 < i2 || j == k && l1 > j2) {
|
||||
if (((j != k) && (l1 < i2)) || ((j == k) && (l1 > j2))) {
|
||||
i -= k;
|
||||
k -= j;
|
||||
for (j = anIntArray1472[j]; --k >= 0; j += Draw2D.width) {
|
||||
@@ -1014,7 +1014,7 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
j1 = i1 <<= 16;
|
||||
j1 = (i1 <<= 16);
|
||||
if (j < 0) {
|
||||
j1 -= l1 * j;
|
||||
i1 -= i2 * j;
|
||||
@@ -1066,7 +1066,7 @@ public class Draw3D {
|
||||
j = Draw2D.bottom;
|
||||
}
|
||||
if (i < j) {
|
||||
i1 = j1 <<= 16;
|
||||
i1 = (j1 <<= 16);
|
||||
if (k < 0) {
|
||||
i1 -= i2 * k;
|
||||
j1 -= j2 * k;
|
||||
@@ -1108,7 +1108,7 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
l = j1 <<= 16;
|
||||
l = (j1 <<= 16);
|
||||
if (k < 0) {
|
||||
l -= i2 * k;
|
||||
j1 -= j2 * k;
|
||||
@@ -1165,7 +1165,7 @@ public class Draw3D {
|
||||
}
|
||||
|
||||
dstOff += leftX;
|
||||
int length = rightX - leftX >> 2;
|
||||
int length = (rightX - leftX) >> 2;
|
||||
|
||||
if (Draw3D.alpha == 0) {
|
||||
while (--length >= 0) {
|
||||
@@ -1174,7 +1174,7 @@ public class Draw3D {
|
||||
dst[dstOff++] = rgb;
|
||||
dst[dstOff++] = rgb;
|
||||
}
|
||||
for (length = rightX - leftX & 3; --length >= 0; ) {
|
||||
for (length = (rightX - leftX) & 3; --length >= 0; ) {
|
||||
dst[dstOff++] = rgb;
|
||||
}
|
||||
return;
|
||||
@@ -1183,17 +1183,17 @@ public class Draw3D {
|
||||
int alpha = Draw3D.alpha;
|
||||
int invAlpha = 256 - Draw3D.alpha;
|
||||
|
||||
rgb = ((rgb & 0xff00ff) * invAlpha >> 8 & 0xff00ff) + ((rgb & 0xff00) * invAlpha >> 8 & 0xff00);
|
||||
rgb = ((((rgb & 0xff00ff) * invAlpha) >> 8) & 0xff00ff) + ((((rgb & 0xff00) * invAlpha) >> 8) & 0xff00);
|
||||
|
||||
while (--length >= 0) {
|
||||
dst[dstOff++] = rgb + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = rgb + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = rgb + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = rgb + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
dst[dstOff++] = rgb + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = rgb + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = rgb + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
dst[dstOff++] = rgb + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
}
|
||||
|
||||
for (length = rightX - leftX & 3; --length >= 0; ) {
|
||||
dst[dstOff++] = rgb + ((dst[dstOff] & 0xff00ff) * alpha >> 8 & 0xff00ff) + ((dst[dstOff] & 0xff00) * alpha >> 8 & 0xff00);
|
||||
for (length = (rightX - leftX) & 3; --length >= 0; ) {
|
||||
dst[dstOff++] = rgb + ((((dst[dstOff] & 0xff00ff) * alpha) >> 8) & 0xff00ff) + ((((dst[dstOff] & 0xff00) * alpha) >> 8) & 0xff00);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1209,17 +1209,17 @@ public class Draw3D {
|
||||
viewYC -= viewYA;
|
||||
viewZC -= viewZA;
|
||||
|
||||
int l4 = viewXC * viewYA - viewYC * viewXA << 14;
|
||||
int i5 = viewYC * viewZA - viewZC * viewYA << 8;
|
||||
int j5 = viewZC * viewXA - viewXC * viewZA << 5;
|
||||
int l4 = ((viewXC * viewYA) - (viewYC * viewXA)) << 14;
|
||||
int i5 = ((viewYC * viewZA) - (viewZC * viewYA)) << 8;
|
||||
int j5 = ((viewZC * viewXA) - (viewXC * viewZA)) << 5;
|
||||
|
||||
int k5 = viewXB * viewYA - viewYB * viewXA << 14;
|
||||
int l5 = viewYB * viewZA - viewZB * viewYA << 8;
|
||||
int i6 = viewZB * viewXA - viewXB * viewZA << 5;
|
||||
int k5 = ((viewXB * viewYA) - (viewYB * viewXA)) << 14;
|
||||
int l5 = ((viewYB * viewZA) - (viewZB * viewYA)) << 8;
|
||||
int i6 = ((viewZB * viewXA) - (viewXB * viewZA)) << 5;
|
||||
|
||||
int j6 = viewYB * viewXC - viewXB * viewYC << 14;
|
||||
int k6 = viewZB * viewYC - viewYB * viewZC << 8;
|
||||
int l6 = viewXB * viewZC - viewZB * viewXC << 5;
|
||||
int j6 = ((viewYB * viewXC) - (viewXB * viewYC)) << 14;
|
||||
int k6 = ((viewZB * viewYC) - (viewYB * viewZC)) << 8;
|
||||
int l6 = ((viewXB * viewZC) - (viewZB * viewXC)) << 5;
|
||||
|
||||
int xStepAB = 0;
|
||||
int xStepBC = 0;
|
||||
@@ -1230,21 +1230,21 @@ public class Draw3D {
|
||||
int lightnessStepAC = 0;
|
||||
|
||||
if (yB != yA) {
|
||||
xStepAB = (xB - xA << 16) / (yB - yA);
|
||||
lightnessStepAB = (lightnessB - lightnessA << 16) / (yB - yA);
|
||||
xStepAB = ((xB - xA) << 16) / (yB - yA);
|
||||
lightnessStepAB = ((lightnessB - lightnessA) << 16) / (yB - yA);
|
||||
}
|
||||
|
||||
if (yC != yB) {
|
||||
xStepBC = (xC - xB << 16) / (yC - yB);
|
||||
lightnessStepBC = (lightnessC - lightnessB << 16) / (yC - yB);
|
||||
xStepBC = ((xC - xB) << 16) / (yC - yB);
|
||||
lightnessStepBC = ((lightnessC - lightnessB) << 16) / (yC - yB);
|
||||
}
|
||||
|
||||
if (yC != yA) {
|
||||
xStepAC = (xA - xC << 16) / (yA - yC);
|
||||
lightnessStepAC = (lightnessA - lightnessC << 16) / (yA - yC);
|
||||
xStepAC = ((xA - xC) << 16) / (yA - yC);
|
||||
lightnessStepAC = ((lightnessA - lightnessC) << 16) / (yA - yC);
|
||||
}
|
||||
|
||||
if (yA <= yB && yA <= yC) {
|
||||
if ((yA <= yB) && (yA <= yC)) {
|
||||
if (yA >= Draw2D.bottom) {
|
||||
return;
|
||||
}
|
||||
@@ -1255,8 +1255,8 @@ public class Draw3D {
|
||||
yC = Draw2D.bottom;
|
||||
}
|
||||
if (yB < yC) {
|
||||
xC = xA <<= 16;
|
||||
lightnessC = lightnessA <<= 16;
|
||||
xC = (xA <<= 16);
|
||||
lightnessC = (lightnessA <<= 16);
|
||||
if (yA < 0) {
|
||||
xC -= xStepAC * yA;
|
||||
xA -= xStepAB * yA;
|
||||
@@ -1275,7 +1275,7 @@ public class Draw3D {
|
||||
l4 += j5 * k8;
|
||||
k5 += i6 * k8;
|
||||
j6 += l6 * k8;
|
||||
if (yA != yB && xStepAC < xStepAB || yA == yB && xStepAC > xStepBC) {
|
||||
if (((yA != yB) && (xStepAC < xStepAB)) || ((yA == yB) && (xStepAC > xStepBC))) {
|
||||
yC -= yB;
|
||||
yB -= yA;
|
||||
yA = anIntArray1472[yA];
|
||||
@@ -1330,8 +1330,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xB = xA <<= 16;
|
||||
lightnessB = lightnessA <<= 16;
|
||||
xB = (xA <<= 16);
|
||||
lightnessB = (lightnessA <<= 16);
|
||||
if (yA < 0) {
|
||||
xB -= xStepAC * yA;
|
||||
xA -= xStepAB * yA;
|
||||
@@ -1350,7 +1350,7 @@ public class Draw3D {
|
||||
l4 += j5 * l8;
|
||||
k5 += i6 * l8;
|
||||
j6 += l6 * l8;
|
||||
if (yA != yC && xStepAC < xStepAB || yA == yC && xStepBC > xStepAB) {
|
||||
if (((yA != yC) && (xStepAC < xStepAB)) || ((yA == yC) && (xStepBC > xStepAB))) {
|
||||
yB -= yC;
|
||||
yC -= yA;
|
||||
yA = anIntArray1472[yA];
|
||||
@@ -1416,8 +1416,8 @@ public class Draw3D {
|
||||
yA = Draw2D.bottom;
|
||||
}
|
||||
if (yC < yA) {
|
||||
xA = xB <<= 16;
|
||||
lightnessA = lightnessB <<= 16;
|
||||
xA = (xB <<= 16);
|
||||
lightnessA = (lightnessB <<= 16);
|
||||
if (yB < 0) {
|
||||
xA -= xStepAB * yB;
|
||||
xB -= xStepBC * yB;
|
||||
@@ -1436,7 +1436,7 @@ public class Draw3D {
|
||||
l4 += j5 * i9;
|
||||
k5 += i6 * i9;
|
||||
j6 += l6 * i9;
|
||||
if (yB != yC && xStepAB < xStepBC || yB == yC && xStepAB > xStepAC) {
|
||||
if (((yB != yC) && (xStepAB < xStepBC)) || ((yB == yC) && (xStepAB > xStepAC))) {
|
||||
yA -= yC;
|
||||
yC -= yB;
|
||||
yB = anIntArray1472[yB];
|
||||
@@ -1491,8 +1491,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xC = xB <<= 16;
|
||||
lightnessC = lightnessB <<= 16;
|
||||
xC = (xB <<= 16);
|
||||
lightnessC = (lightnessB <<= 16);
|
||||
if (yB < 0) {
|
||||
xC -= xStepAB * yB;
|
||||
xB -= xStepBC * yB;
|
||||
@@ -1576,8 +1576,8 @@ public class Draw3D {
|
||||
yB = Draw2D.bottom;
|
||||
}
|
||||
if (yA < yB) {
|
||||
xB = xC <<= 16;
|
||||
lightnessB = lightnessC <<= 16;
|
||||
xB = (xC <<= 16);
|
||||
lightnessB = (lightnessC <<= 16);
|
||||
if (yC < 0) {
|
||||
xB -= xStepBC * yC;
|
||||
xC -= xStepAC * yC;
|
||||
@@ -1651,8 +1651,8 @@ public class Draw3D {
|
||||
}
|
||||
return;
|
||||
}
|
||||
xA = xC <<= 16;
|
||||
lightnessA = lightnessC <<= 16;
|
||||
xA = (xC <<= 16);
|
||||
lightnessA = (lightnessC <<= 16);
|
||||
if (yC < 0) {
|
||||
xA -= xStepBC * yC;
|
||||
xC -= xStepAC * yC;
|
||||
@@ -1744,12 +1744,12 @@ public class Draw3D {
|
||||
if (l >= i1) {
|
||||
return;
|
||||
}
|
||||
k3 = i1 - l >> 3;
|
||||
k3 = (i1 - l) >> 3;
|
||||
j3 <<= 12;
|
||||
} else {
|
||||
if (i1 - l > 7) {
|
||||
k3 = i1 - l >> 3;
|
||||
j3 = (k1 - j1) * recipreical15[k3] >> 6;
|
||||
if ((i1 - l) > 7) {
|
||||
k3 = (i1 - l) >> 3;
|
||||
j3 = ((k1 - j1) * recipreical15[k3]) >> 6;
|
||||
} else {
|
||||
k3 = 0;
|
||||
j3 = 0;
|
||||
@@ -1787,8 +1787,8 @@ public class Draw3D {
|
||||
i4 = 4032;
|
||||
}
|
||||
}
|
||||
int i7 = i4 - i >> 3;
|
||||
int k7 = k4 - j >> 3;
|
||||
int i7 = (i4 - i) >> 3;
|
||||
int k7 = (k4 - j) >> 3;
|
||||
i += (j1 & 0x600000) >> 3;
|
||||
int i8 = j1 >> 23;
|
||||
if (opaque) {
|
||||
@@ -1830,13 +1830,13 @@ public class Draw3D {
|
||||
i4 = 4032;
|
||||
}
|
||||
}
|
||||
i7 = i4 - i >> 3;
|
||||
k7 = k4 - j >> 3;
|
||||
i7 = (i4 - i) >> 3;
|
||||
k7 = (k4 - j) >> 3;
|
||||
j1 += j3;
|
||||
i += (j1 & 0x600000) >> 3;
|
||||
i8 = j1 >> 23;
|
||||
}
|
||||
for (k3 = i1 - l & 7; k3-- > 0; ) {
|
||||
for (k3 = (i1 - l) & 7; k3-- > 0; ) {
|
||||
ai[k++] = ai1[(j & 0xfc0) + (i >> 6)] >>> i8;
|
||||
i += i7;
|
||||
j += k7;
|
||||
@@ -1906,13 +1906,13 @@ public class Draw3D {
|
||||
i4 = 4032;
|
||||
}
|
||||
}
|
||||
i7 = i4 - i >> 3;
|
||||
k7 = k4 - j >> 3;
|
||||
i7 = (i4 - i) >> 3;
|
||||
k7 = (k4 - j) >> 3;
|
||||
j1 += j3;
|
||||
i += (j1 & 0x600000) >> 3;
|
||||
i8 = j1 >> 23;
|
||||
}
|
||||
for (k3 = i1 - l & 7; k3-- > 0; ) {
|
||||
for (k3 = (i1 - l) & 7; k3-- > 0; ) {
|
||||
int l8;
|
||||
if ((l8 = ai1[(j & 0xfc0) + (i >> 6)] >>> i8) != 0) {
|
||||
ai[k] = l8;
|
||||
@@ -1952,8 +1952,8 @@ public class Draw3D {
|
||||
j4 = 16256;
|
||||
}
|
||||
}
|
||||
int j7 = j4 - i >> 3;
|
||||
int l7 = l4 - j >> 3;
|
||||
int j7 = (j4 - i) >> 3;
|
||||
int l7 = (l4 - j) >> 3;
|
||||
i += j1 & 0x600000;
|
||||
int j8 = j1 >> 23;
|
||||
if (opaque) {
|
||||
@@ -1995,13 +1995,13 @@ public class Draw3D {
|
||||
j4 = 16256;
|
||||
}
|
||||
}
|
||||
j7 = j4 - i >> 3;
|
||||
l7 = l4 - j >> 3;
|
||||
j7 = (j4 - i) >> 3;
|
||||
l7 = (l4 - j) >> 3;
|
||||
j1 += j3;
|
||||
i += j1 & 0x600000;
|
||||
j8 = j1 >> 23;
|
||||
}
|
||||
for (k3 = i1 - l & 7; k3-- > 0; ) {
|
||||
for (k3 = (i1 - l) & 7; k3-- > 0; ) {
|
||||
ai[k++] = ai1[(j & 0x3f80) + (i >> 7)] >>> j8;
|
||||
i += j7;
|
||||
j += l7;
|
||||
@@ -2071,13 +2071,13 @@ public class Draw3D {
|
||||
j4 = 16256;
|
||||
}
|
||||
}
|
||||
j7 = j4 - i >> 3;
|
||||
l7 = l4 - j >> 3;
|
||||
j7 = (j4 - i) >> 3;
|
||||
l7 = (l4 - j) >> 3;
|
||||
j1 += j3;
|
||||
i += j1 & 0x600000;
|
||||
j8 = j1 >> 23;
|
||||
}
|
||||
for (int l3 = i1 - l & 7; l3-- > 0; ) {
|
||||
for (int l3 = (i1 - l) & 7; l3-- > 0; ) {
|
||||
int j9;
|
||||
if ((j9 = ai1[(j & 0x3f80) + (i >> 7)] >>> j8) != 0) {
|
||||
ai[k] = j9;
|
||||
|
||||
@@ -35,7 +35,7 @@ public class FileArchive {
|
||||
anIntArray729 = new int[anInt727];
|
||||
anIntArray730 = new int[anInt727];
|
||||
anIntArray731 = new int[anInt727];
|
||||
int k = buffer.position + anInt727 * 10;
|
||||
int k = buffer.position + (anInt727 * 10);
|
||||
for (int l = 0; l < anInt727; l++) {
|
||||
anIntArray728[l] = buffer.method413();
|
||||
anIntArray729[l] = buffer.method412();
|
||||
@@ -49,7 +49,7 @@ public class FileArchive {
|
||||
int i = 0;
|
||||
s = s.toUpperCase();
|
||||
for (int j = 0; j < s.length(); j++) {
|
||||
i = (i * 61 + s.charAt(j)) - 32;
|
||||
i = ((i * 61) + s.charAt(j)) - 32;
|
||||
}
|
||||
for (int k = 0; k < anInt727; k++) {
|
||||
if (anIntArray728[k] == i) {
|
||||
|
||||
@@ -33,10 +33,10 @@ public class FileStore {
|
||||
}
|
||||
int i1 = ((aByteArray308[0] & 0xff) << 16) + ((aByteArray308[1] & 0xff) << 8) + (aByteArray308[2] & 0xff);
|
||||
int j1 = ((aByteArray308[3] & 0xff) << 16) + ((aByteArray308[4] & 0xff) << 8) + (aByteArray308[5] & 0xff);
|
||||
if (i1 < 0 || i1 > anInt312) {
|
||||
if ((i1 < 0) || (i1 > anInt312)) {
|
||||
return null;
|
||||
}
|
||||
if (j1 <= 0 || (long) j1 > aRandomAccessFile309.length() / 520L) {
|
||||
if ((j1 <= 0) || ((long) j1 > (aRandomAccessFile309.length() / 520L))) {
|
||||
return null;
|
||||
}
|
||||
byte[] abyte0 = new byte[i1];
|
||||
@@ -52,7 +52,7 @@ public class FileStore {
|
||||
i2 = 512;
|
||||
}
|
||||
int j2;
|
||||
for (; k < i2 + 8; k += j2) {
|
||||
for (; k < (i2 + 8); k += j2) {
|
||||
j2 = aRandomAccessFile309.read(aByteArray308, k, (i2 + 8) - k);
|
||||
if (j2 == -1) {
|
||||
return null;
|
||||
@@ -62,10 +62,10 @@ public class FileStore {
|
||||
int l2 = ((aByteArray308[2] & 0xff) << 8) + (aByteArray308[3] & 0xff);
|
||||
int i3 = ((aByteArray308[4] & 0xff) << 16) + ((aByteArray308[5] & 0xff) << 8) + (aByteArray308[6] & 0xff);
|
||||
int j3 = aByteArray308[7] & 0xff;
|
||||
if (k2 != i || l2 != l1 || j3 != anInt311) {
|
||||
if ((k2 != i) || (l2 != l1) || (j3 != anInt311)) {
|
||||
return null;
|
||||
}
|
||||
if (i3 < 0 || (long) i3 > aRandomAccessFile309.length() / 520L) {
|
||||
if ((i3 < 0) || ((long) i3 > (aRandomAccessFile309.length() / 520L))) {
|
||||
return null;
|
||||
}
|
||||
for (int k3 = 0; k3 < i2; k3++) {
|
||||
@@ -100,7 +100,7 @@ public class FileStore {
|
||||
}
|
||||
}
|
||||
l = ((aByteArray308[3] & 0xff) << 16) + ((aByteArray308[4] & 0xff) << 8) + (aByteArray308[5] & 0xff);
|
||||
if (l <= 0 || (long) l > aRandomAccessFile309.length() / 520L) {
|
||||
if ((l <= 0) || ((long) l > (aRandomAccessFile309.length() / 520L))) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
@@ -135,10 +135,10 @@ public class FileStore {
|
||||
int j3 = ((aByteArray308[2] & 0xff) << 8) + (aByteArray308[3] & 0xff);
|
||||
i2 = ((aByteArray308[4] & 0xff) << 16) + ((aByteArray308[5] & 0xff) << 8) + (aByteArray308[6] & 0xff);
|
||||
int k3 = aByteArray308[7] & 0xff;
|
||||
if (i3 != j || j3 != l1 || k3 != anInt311) {
|
||||
if ((i3 != j) || (j3 != l1) || (k3 != anInt311)) {
|
||||
return false;
|
||||
}
|
||||
if (i2 < 0 || (long) i2 > aRandomAccessFile309.length() / 520L) {
|
||||
if ((i2 < 0) || ((long) i2 > (aRandomAccessFile309.length() / 520L))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public class FileStore {
|
||||
i2++;
|
||||
}
|
||||
}
|
||||
if (k - j1 <= 512) {
|
||||
if ((k - j1) <= 512) {
|
||||
i2 = 0;
|
||||
}
|
||||
aByteArray308[0] = (byte) (j >> 8);
|
||||
@@ -181,7 +181,7 @@ public class FileStore {
|
||||
}
|
||||
|
||||
public synchronized void method236(RandomAccessFile randomaccessfile, int j) throws IOException {
|
||||
if (j < 0 || j > 0x3c00000) {
|
||||
if ((j < 0) || (j > 0x3c00000)) {
|
||||
System.out.println("Badseek - pos:" + j + " len:" + randomaccessfile.length());
|
||||
j = 0x3c00000;
|
||||
try {
|
||||
|
||||
@@ -71,8 +71,8 @@ public class FloType {
|
||||
}
|
||||
|
||||
public void method262(int i) {
|
||||
double d = (double) (i >> 16 & 0xff) / 256D;
|
||||
double d1 = (double) (i >> 8 & 0xff) / 256D;
|
||||
double d = (double) ((i >> 16) & 0xff) / 256D;
|
||||
double d1 = (double) ((i >> 8) & 0xff) / 256D;
|
||||
double d2 = (double) (i & 0xff) / 256D;
|
||||
double d3 = d;
|
||||
if (d1 < d3) {
|
||||
@@ -101,9 +101,9 @@ public class FloType {
|
||||
if (d == d4) {
|
||||
d5 = (d1 - d2) / (d4 - d3);
|
||||
} else if (d1 == d4) {
|
||||
d5 = 2D + (d2 - d) / (d4 - d3);
|
||||
d5 = 2D + ((d2 - d) / (d4 - d3));
|
||||
} else if (d2 == d4) {
|
||||
d5 = 4D + (d - d1) / (d4 - d3);
|
||||
d5 = 4D + ((d - d1) / (d4 - d3));
|
||||
}
|
||||
}
|
||||
d5 /= 6D;
|
||||
@@ -163,7 +163,7 @@ public class FloType {
|
||||
if (k > 243) {
|
||||
j /= 2;
|
||||
}
|
||||
return (i / 4 << 10) + (j / 32 << 7) + k / 2;
|
||||
return ((i / 4) << 10) + ((j / 32) << 7) + (k / 2);
|
||||
}
|
||||
|
||||
}
|
||||
+753
-753
File diff suppressed because it is too large.
Load diff
@@ -97,7 +97,7 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
}
|
||||
if (j > 256) {
|
||||
j = 256;
|
||||
k = (int) ((long) anInt5 - (l1 - aLongArray7[i]) / 10L);
|
||||
k = (int) ((long) anInt5 - ((l1 - aLongArray7[i]) / 10L));
|
||||
}
|
||||
if (k > anInt5) {
|
||||
k = anInt5;
|
||||
@@ -309,7 +309,7 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
if (i == 10) {
|
||||
j = 10;
|
||||
}
|
||||
if (i >= 112 && i <= 123) {
|
||||
if ((i >= 112) && (i <= 123)) {
|
||||
j = (1008 + i) - 112;
|
||||
}
|
||||
if (i == 36) {
|
||||
@@ -324,12 +324,12 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
if (i == 34) {
|
||||
j = 1003;
|
||||
}
|
||||
if (j > 0 && j < 128) {
|
||||
if ((j > 0) && (j < 128)) {
|
||||
anIntArray30[j] = 1;
|
||||
}
|
||||
if (j > 4) {
|
||||
anIntArray31[anInt33] = j;
|
||||
anInt33 = anInt33 + 1 & 0x7f;
|
||||
anInt33 = (anInt33 + 1) & 0x7f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
if (i == 10) {
|
||||
c = '\n';
|
||||
}
|
||||
if (c > 0 && c < '\200') {
|
||||
if ((c > 0) && (c < '\200')) {
|
||||
anIntArray30[c] = 0;
|
||||
}
|
||||
}
|
||||
@@ -379,7 +379,7 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
int k = -1;
|
||||
if (anInt33 != anInt32) {
|
||||
k = anIntArray31[anInt32];
|
||||
anInt32 = anInt32 + 1 & 0x7f;
|
||||
anInt32 = (anInt32 + 1) & 0x7f;
|
||||
}
|
||||
return k;
|
||||
}
|
||||
@@ -470,12 +470,12 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
|
||||
aBoolean16 = false;
|
||||
}
|
||||
Color color = new Color(140, 17, 17);
|
||||
int j = anInt11 / 2 - 18;
|
||||
int j = (anInt11 / 2) - 18;
|
||||
aGraphics12.setColor(color);
|
||||
aGraphics12.drawRect(anInt10 / 2 - 152, j, 304, 34);
|
||||
aGraphics12.fillRect(anInt10 / 2 - 150, j + 2, i * 3, 30);
|
||||
aGraphics12.drawRect((anInt10 / 2) - 152, j, 304, 34);
|
||||
aGraphics12.fillRect((anInt10 / 2) - 150, j + 2, i * 3, 30);
|
||||
aGraphics12.setColor(Color.black);
|
||||
aGraphics12.fillRect((anInt10 / 2 - 150) + i * 3, j + 2, 300 - i * 3, 30);
|
||||
aGraphics12.fillRect(((anInt10 / 2) - 150) + (i * 3), j + 2, 300 - (i * 3), 30);
|
||||
aGraphics12.setFont(font);
|
||||
aGraphics12.setColor(Color.white);
|
||||
aGraphics12.drawString(s, (anInt10 - fontmetrics.stringWidth(s)) / 2, j + 22);
|
||||
|
||||
@@ -13,7 +13,7 @@ public class Huffman {
|
||||
int k = -1;
|
||||
for (int l = 0; l < i; l++) {
|
||||
int i1 = buffer.method408();
|
||||
int j1 = i1 >> 4 & 0xf;
|
||||
int j1 = (i1 >> 4) & 0xf;
|
||||
if (k == -1) {
|
||||
if (j1 < 13) {
|
||||
aCharArray631[j++] = aCharArray633[j1];
|
||||
@@ -39,11 +39,11 @@ public class Huffman {
|
||||
boolean flag1 = true;
|
||||
for (int k1 = 0; k1 < j; k1++) {
|
||||
char c = aCharArray631[k1];
|
||||
if (flag1 && c >= 'a' && c <= 'z') {
|
||||
if (flag1 && (c >= 'a') && (c <= 'z')) {
|
||||
aCharArray631[k1] += '\uFFE0';
|
||||
flag1 = false;
|
||||
}
|
||||
if (c == '.' || c == '!' || c == '?') {
|
||||
if ((c == '.') || (c == '!') || (c == '?')) {
|
||||
flag1 = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,11 +46,11 @@ public class IDKType {
|
||||
}
|
||||
} else if (i == 3) {
|
||||
aBoolean662 = true;
|
||||
} else if (i >= 40 && i < 50) {
|
||||
} else if ((i >= 40) && (i < 50)) {
|
||||
anIntArray659[i - 40] = buffer.method410();
|
||||
} else if (i >= 50 && i < 60) {
|
||||
} else if ((i >= 50) && (i < 60)) {
|
||||
anIntArray660[i - 50] = buffer.method410();
|
||||
} else if (i >= 60 && i < 70) {
|
||||
} else if ((i >= 60) && (i < 70)) {
|
||||
anIntArray661[i - 60] = buffer.method410();
|
||||
} else {
|
||||
System.out.println("Error unrecognised config code: " + i);
|
||||
@@ -97,7 +97,7 @@ public class IDKType {
|
||||
public boolean method539() {
|
||||
boolean flag1 = true;
|
||||
for (int i = 0; i < 5; i++) {
|
||||
if (anIntArray661[i] != -1 && !Model.validate(anIntArray661[i])) {
|
||||
if ((anIntArray661[i] != -1) && !Model.validate(anIntArray661[i])) {
|
||||
flag1 = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,10 +41,10 @@ public class ISAACCipher {
|
||||
} else if ((i & 3) == 3) {
|
||||
anInt337 ^= anInt337 >>> 16;
|
||||
}
|
||||
anInt337 += anIntArray336[i + 128 & 0xff];
|
||||
anInt337 += anIntArray336[(i + 128) & 0xff];
|
||||
int k;
|
||||
anIntArray336[i] = k = anIntArray336[(j & 0x3fc) >> 2] + anInt337 + anInt338;
|
||||
anIntArray335[i] = anInt338 = anIntArray336[(k >> 8 & 0x3fc) >> 2] + j;
|
||||
anIntArray335[i] = anInt338 = anIntArray336[((k >> 8) & 0x3fc) >> 2] + j;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+41
-41
@@ -50,7 +50,7 @@ public class Image24 extends Draw2D {
|
||||
anInt1445 = buffer_1.method410();
|
||||
int j = buffer_1.method408();
|
||||
int[] ai = new int[j];
|
||||
for (int k = 0; k < j - 1; k++) {
|
||||
for (int k = 0; k < (j - 1); k++) {
|
||||
ai[k + 1] = buffer_1.method412();
|
||||
if (ai[k + 1] == 0) {
|
||||
ai[k + 1] = 1;
|
||||
@@ -77,7 +77,7 @@ public class Image24 extends Draw2D {
|
||||
if (i1 == 1) {
|
||||
for (int l1 = 0; l1 < anInt1440; l1++) {
|
||||
for (int i2 = 0; i2 < anInt1441; i2++) {
|
||||
anIntArray1439[l1 + i2 * anInt1440] = ai[buffer.method408()];
|
||||
anIntArray1439[l1 + (i2 * anInt1440)] = ai[buffer.method408()];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,14 +91,14 @@ public class Image24 extends Draw2D {
|
||||
for (int i1 = 0; i1 < anIntArray1439.length; i1++) {
|
||||
int j1 = anIntArray1439[i1];
|
||||
if (j1 != 0) {
|
||||
int k1 = j1 >> 16 & 0xff;
|
||||
int k1 = (j1 >> 16) & 0xff;
|
||||
k1 += i;
|
||||
if (k1 < 1) {
|
||||
k1 = 1;
|
||||
} else if (k1 > 255) {
|
||||
k1 = 255;
|
||||
}
|
||||
int l1 = j1 >> 8 & 0xff;
|
||||
int l1 = (j1 >> 8) & 0xff;
|
||||
l1 += j;
|
||||
if (l1 < 1) {
|
||||
l1 = 1;
|
||||
@@ -121,7 +121,7 @@ public class Image24 extends Draw2D {
|
||||
int[] ai = new int[anInt1444 * anInt1445];
|
||||
for (int j = 0; j < anInt1441; j++) {
|
||||
for (int k = 0; k < anInt1440; k++) {
|
||||
ai[(j + anInt1443) * anInt1444 + (k + anInt1442)] = anIntArray1439[j * anInt1440 + k];
|
||||
ai[((j + anInt1443) * anInt1444) + (k + anInt1442)] = anIntArray1439[(j * anInt1440) + k];
|
||||
}
|
||||
}
|
||||
anIntArray1439 = ai;
|
||||
@@ -134,7 +134,7 @@ public class Image24 extends Draw2D {
|
||||
public void method346(int i, int j) {
|
||||
i += anInt1442;
|
||||
j += anInt1443;
|
||||
int l = i + j * Draw2D.width;
|
||||
int l = i + (j * Draw2D.width);
|
||||
int i1 = 0;
|
||||
int j1 = anInt1441;
|
||||
int k1 = anInt1440;
|
||||
@@ -147,7 +147,7 @@ public class Image24 extends Draw2D {
|
||||
i1 += j2 * k1;
|
||||
l += j2 * Draw2D.width;
|
||||
}
|
||||
if (j + j1 > Draw2D.bottom) {
|
||||
if ((j + j1) > Draw2D.bottom) {
|
||||
j1 -= (j + j1) - Draw2D.bottom;
|
||||
}
|
||||
if (i < Draw2D.left) {
|
||||
@@ -159,13 +159,13 @@ public class Image24 extends Draw2D {
|
||||
i2 += k2;
|
||||
l1 += k2;
|
||||
}
|
||||
if (i + k1 > Draw2D.right) {
|
||||
if ((i + k1) > Draw2D.right) {
|
||||
int l2 = (i + k1) - Draw2D.right;
|
||||
k1 -= l2;
|
||||
i2 += l2;
|
||||
l1 += l2;
|
||||
}
|
||||
if (k1 <= 0 || j1 <= 0) {
|
||||
if ((k1 <= 0) || (j1 <= 0)) {
|
||||
} else {
|
||||
method347(l, k1, j1, i2, i1, l1, anIntArray1439, Draw2D.pixels);
|
||||
}
|
||||
@@ -192,7 +192,7 @@ public class Image24 extends Draw2D {
|
||||
public void method348(int i, int k) {
|
||||
i += anInt1442;
|
||||
k += anInt1443;
|
||||
int l = i + k * Draw2D.width;
|
||||
int l = i + (k * Draw2D.width);
|
||||
int i1 = 0;
|
||||
int j1 = anInt1441;
|
||||
int k1 = anInt1440;
|
||||
@@ -205,7 +205,7 @@ public class Image24 extends Draw2D {
|
||||
i1 += j2 * k1;
|
||||
l += j2 * Draw2D.width;
|
||||
}
|
||||
if (k + j1 > Draw2D.bottom) {
|
||||
if ((k + j1) > Draw2D.bottom) {
|
||||
j1 -= (k + j1) - Draw2D.bottom;
|
||||
}
|
||||
if (i < Draw2D.left) {
|
||||
@@ -217,13 +217,13 @@ public class Image24 extends Draw2D {
|
||||
i2 += k2;
|
||||
l1 += k2;
|
||||
}
|
||||
if (i + k1 > Draw2D.right) {
|
||||
if ((i + k1) > Draw2D.right) {
|
||||
int l2 = (i + k1) - Draw2D.right;
|
||||
k1 -= l2;
|
||||
i2 += l2;
|
||||
l1 += l2;
|
||||
}
|
||||
if (k1 <= 0 || j1 <= 0) {
|
||||
if ((k1 <= 0) || (j1 <= 0)) {
|
||||
} else {
|
||||
method349(Draw2D.pixels, anIntArray1439, i1, l, k1, j1, l1, i2);
|
||||
}
|
||||
@@ -276,7 +276,7 @@ public class Image24 extends Draw2D {
|
||||
public void method350(int i, int j, int k) {
|
||||
i += anInt1442;
|
||||
j += anInt1443;
|
||||
int i1 = i + j * Draw2D.width;
|
||||
int i1 = i + (j * Draw2D.width);
|
||||
int j1 = 0;
|
||||
int k1 = anInt1441;
|
||||
int l1 = anInt1440;
|
||||
@@ -289,7 +289,7 @@ public class Image24 extends Draw2D {
|
||||
j1 += k2 * l1;
|
||||
i1 += k2 * Draw2D.width;
|
||||
}
|
||||
if (j + k1 > Draw2D.bottom) {
|
||||
if ((j + k1) > Draw2D.bottom) {
|
||||
k1 -= (j + k1) - Draw2D.bottom;
|
||||
}
|
||||
if (i < Draw2D.left) {
|
||||
@@ -301,13 +301,13 @@ public class Image24 extends Draw2D {
|
||||
j2 += l2;
|
||||
i2 += l2;
|
||||
}
|
||||
if (i + l1 > Draw2D.right) {
|
||||
if ((i + l1) > Draw2D.right) {
|
||||
int i3 = (i + l1) - Draw2D.right;
|
||||
l1 -= i3;
|
||||
j2 += i3;
|
||||
i2 += i3;
|
||||
}
|
||||
if (l1 <= 0 || k1 <= 0) {
|
||||
if ((l1 <= 0) || (k1 <= 0)) {
|
||||
} else {
|
||||
method351(j1, l1, Draw2D.pixels, anIntArray1439, j2, k1, i2, k, i1);
|
||||
}
|
||||
@@ -320,7 +320,7 @@ public class Image24 extends Draw2D {
|
||||
int k = ai1[i++];
|
||||
if (k != 0) {
|
||||
int i3 = ai[l1];
|
||||
ai[l1++] = ((k & 0xff00ff) * k1 + (i3 & 0xff00ff) * j2 & 0xff00ff00) + ((k & 0xff00) * k1 + (i3 & 0xff00) * j2 & 0xff0000) >> 8;
|
||||
ai[l1++] = (((((k & 0xff00ff) * k1) + ((i3 & 0xff00ff) * j2)) & 0xff00ff00) + ((((k & 0xff00) * k1) + ((i3 & 0xff00) * j2)) & 0xff0000)) >> 8;
|
||||
} else {
|
||||
l1++;
|
||||
}
|
||||
@@ -336,18 +336,18 @@ public class Image24 extends Draw2D {
|
||||
int k2 = -i / 2;
|
||||
int l2 = (int) (Math.sin((double) j / 326.11000000000001D) * 65536D);
|
||||
int i3 = (int) (Math.cos((double) j / 326.11000000000001D) * 65536D);
|
||||
l2 = l2 * k >> 8;
|
||||
i3 = i3 * k >> 8;
|
||||
int j3 = (i2 << 16) + (k2 * l2 + j2 * i3);
|
||||
int k3 = (i1 << 16) + (k2 * i3 - j2 * l2);
|
||||
int l3 = k1 + j1 * Draw2D.width;
|
||||
l2 = (l2 * k) >> 8;
|
||||
i3 = (i3 * k) >> 8;
|
||||
int j3 = (i2 << 16) + ((k2 * l2) + (j2 * i3));
|
||||
int k3 = (i1 << 16) + ((k2 * i3) - (j2 * l2));
|
||||
int l3 = k1 + (j1 * Draw2D.width);
|
||||
for (j1 = 0; j1 < i; j1++) {
|
||||
int i4 = ai1[j1];
|
||||
int j4 = l3 + i4;
|
||||
int k4 = j3 + i3 * i4;
|
||||
int l4 = k3 - l2 * i4;
|
||||
int k4 = j3 + (i3 * i4);
|
||||
int l4 = k3 - (l2 * i4);
|
||||
for (k1 = -ai[j1]; k1 < 0; k1++) {
|
||||
Draw2D.pixels[j4++] = anIntArray1439[(k4 >> 16) + (l4 >> 16) * anInt1440];
|
||||
Draw2D.pixels[j4++] = anIntArray1439[(k4 >> 16) + ((l4 >> 16) * anInt1440)];
|
||||
k4 += i3;
|
||||
l4 -= l2;
|
||||
}
|
||||
@@ -365,17 +365,17 @@ public class Image24 extends Draw2D {
|
||||
int j2 = -k1 / 2;
|
||||
int k2 = (int) (Math.sin(d) * 65536D);
|
||||
int l2 = (int) (Math.cos(d) * 65536D);
|
||||
k2 = k2 * j1 >> 8;
|
||||
l2 = l2 * j1 >> 8;
|
||||
int i3 = (l << 16) + (j2 * k2 + i2 * l2);
|
||||
int j3 = (j << 16) + (j2 * l2 - i2 * k2);
|
||||
int k3 = l1 + i * Draw2D.width;
|
||||
k2 = (k2 * j1) >> 8;
|
||||
l2 = (l2 * j1) >> 8;
|
||||
int i3 = (l << 16) + ((j2 * k2) + (i2 * l2));
|
||||
int j3 = (j << 16) + ((j2 * l2) - (i2 * k2));
|
||||
int k3 = l1 + (i * Draw2D.width);
|
||||
for (i = 0; i < k1; i++) {
|
||||
int l3 = k3;
|
||||
int i4 = i3;
|
||||
int j4 = j3;
|
||||
for (l1 = -k; l1 < 0; l1++) {
|
||||
int k4 = anIntArray1439[(i4 >> 16) + (j4 >> 16) * anInt1440];
|
||||
int k4 = anIntArray1439[(i4 >> 16) + ((j4 >> 16) * anInt1440)];
|
||||
if (k4 != 0) {
|
||||
Draw2D.pixels[l3++] = k4;
|
||||
} else {
|
||||
@@ -395,7 +395,7 @@ public class Image24 extends Draw2D {
|
||||
public void method354(Image8 image, int i, int j) {
|
||||
j += anInt1442;
|
||||
i += anInt1443;
|
||||
int k = j + i * Draw2D.width;
|
||||
int k = j + (i * Draw2D.width);
|
||||
int l = 0;
|
||||
int i1 = anInt1441;
|
||||
int j1 = anInt1440;
|
||||
@@ -408,7 +408,7 @@ public class Image24 extends Draw2D {
|
||||
l += i2 * j1;
|
||||
k += i2 * Draw2D.width;
|
||||
}
|
||||
if (i + i1 > Draw2D.bottom) {
|
||||
if ((i + i1) > Draw2D.bottom) {
|
||||
i1 -= (i + i1) - Draw2D.bottom;
|
||||
}
|
||||
if (j < Draw2D.left) {
|
||||
@@ -420,13 +420,13 @@ public class Image24 extends Draw2D {
|
||||
l1 += j2;
|
||||
k1 += j2;
|
||||
}
|
||||
if (j + j1 > Draw2D.right) {
|
||||
if ((j + j1) > Draw2D.right) {
|
||||
int k2 = (j + j1) - Draw2D.right;
|
||||
j1 -= k2;
|
||||
l1 += k2;
|
||||
k1 += k2;
|
||||
}
|
||||
if (j1 <= 0 || i1 <= 0) {
|
||||
if ((j1 <= 0) || (i1 <= 0)) {
|
||||
} else {
|
||||
method355(anIntArray1439, j1, image.aByteArray1450, i1, Draw2D.pixels, k1, k, l1, l);
|
||||
}
|
||||
@@ -439,25 +439,25 @@ public class Image24 extends Draw2D {
|
||||
int k;
|
||||
for (int k2 = l1; k2 < 0; k2++) {
|
||||
k = ai[k1++];
|
||||
if (k != 0 && abyte0[i1] == 0) {
|
||||
if ((k != 0) && (abyte0[i1] == 0)) {
|
||||
ai1[i1++] = k;
|
||||
} else {
|
||||
i1++;
|
||||
}
|
||||
k = ai[k1++];
|
||||
if (k != 0 && abyte0[i1] == 0) {
|
||||
if ((k != 0) && (abyte0[i1] == 0)) {
|
||||
ai1[i1++] = k;
|
||||
} else {
|
||||
i1++;
|
||||
}
|
||||
k = ai[k1++];
|
||||
if (k != 0 && abyte0[i1] == 0) {
|
||||
if ((k != 0) && (abyte0[i1] == 0)) {
|
||||
ai1[i1++] = k;
|
||||
} else {
|
||||
i1++;
|
||||
}
|
||||
k = ai[k1++];
|
||||
if (k != 0 && abyte0[i1] == 0) {
|
||||
if ((k != 0) && (abyte0[i1] == 0)) {
|
||||
ai1[i1++] = k;
|
||||
} else {
|
||||
i1++;
|
||||
@@ -465,7 +465,7 @@ public class Image24 extends Draw2D {
|
||||
}
|
||||
for (int l2 = i; l2 < 0; l2++) {
|
||||
k = ai[k1++];
|
||||
if (k != 0 && abyte0[i1] == 0) {
|
||||
if ((k != 0) && (abyte0[i1] == 0)) {
|
||||
ai1[i1++] = k;
|
||||
} else {
|
||||
i1++;
|
||||
|
||||
+13
-13
@@ -21,7 +21,7 @@ public class Image8 extends Draw2D {
|
||||
anInt1457 = buffer_1.method410();
|
||||
int j = buffer_1.method408();
|
||||
anIntArray1451 = new int[j];
|
||||
for (int k = 0; k < j - 1; k++) {
|
||||
for (int k = 0; k < (j - 1); k++) {
|
||||
anIntArray1451[k + 1] = buffer_1.method412();
|
||||
}
|
||||
for (int l = 0; l < i; l++) {
|
||||
@@ -45,7 +45,7 @@ public class Image8 extends Draw2D {
|
||||
if (i1 == 1) {
|
||||
for (int l1 = 0; l1 < anInt1452; l1++) {
|
||||
for (int i2 = 0; i2 < anInt1453; i2++) {
|
||||
aByteArray1450[l1 + i2 * anInt1452] = buffer.method409();
|
||||
aByteArray1450[l1 + (i2 * anInt1452)] = buffer.method409();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public class Image8 extends Draw2D {
|
||||
int i = 0;
|
||||
for (int j = 0; j < anInt1453; j++) {
|
||||
for (int k = 0; k < anInt1452; k++) {
|
||||
abyte0[(k + anInt1454 >> 1) + (j + anInt1455 >> 1) * anInt1456] = aByteArray1450[i++];
|
||||
abyte0[((k + anInt1454) >> 1) + (((j + anInt1455) >> 1) * anInt1456)] = aByteArray1450[i++];
|
||||
}
|
||||
}
|
||||
aByteArray1450 = abyte0;
|
||||
@@ -69,14 +69,14 @@ public class Image8 extends Draw2D {
|
||||
}
|
||||
|
||||
public void method357() {
|
||||
if (anInt1452 == anInt1456 && anInt1453 == anInt1457) {
|
||||
if ((anInt1452 == anInt1456) && (anInt1453 == anInt1457)) {
|
||||
return;
|
||||
}
|
||||
byte[] abyte0 = new byte[anInt1456 * anInt1457];
|
||||
int i = 0;
|
||||
for (int j = 0; j < anInt1453; j++) {
|
||||
for (int k = 0; k < anInt1452; k++) {
|
||||
abyte0[k + anInt1454 + (j + anInt1455) * anInt1456] = aByteArray1450[i++];
|
||||
abyte0[k + anInt1454 + ((j + anInt1455) * anInt1456)] = aByteArray1450[i++];
|
||||
}
|
||||
}
|
||||
aByteArray1450 = abyte0;
|
||||
@@ -91,7 +91,7 @@ public class Image8 extends Draw2D {
|
||||
int j = 0;
|
||||
for (int k = 0; k < anInt1453; k++) {
|
||||
for (int l = anInt1452 - 1; l >= 0; l--) {
|
||||
abyte0[j++] = aByteArray1450[l + k * anInt1452];
|
||||
abyte0[j++] = aByteArray1450[l + (k * anInt1452)];
|
||||
}
|
||||
}
|
||||
aByteArray1450 = abyte0;
|
||||
@@ -103,7 +103,7 @@ public class Image8 extends Draw2D {
|
||||
int i = 0;
|
||||
for (int j = anInt1453 - 1; j >= 0; j--) {
|
||||
for (int k = 0; k < anInt1452; k++) {
|
||||
abyte0[i++] = aByteArray1450[k + j * anInt1452];
|
||||
abyte0[i++] = aByteArray1450[k + (j * anInt1452)];
|
||||
}
|
||||
}
|
||||
aByteArray1450 = abyte0;
|
||||
@@ -112,14 +112,14 @@ public class Image8 extends Draw2D {
|
||||
|
||||
public void method360(int i, int j, int k) {
|
||||
for (int i1 = 0; i1 < anIntArray1451.length; i1++) {
|
||||
int j1 = anIntArray1451[i1] >> 16 & 0xff;
|
||||
int j1 = (anIntArray1451[i1] >> 16) & 0xff;
|
||||
j1 += i;
|
||||
if (j1 < 0) {
|
||||
j1 = 0;
|
||||
} else if (j1 > 255) {
|
||||
j1 = 255;
|
||||
}
|
||||
int k1 = anIntArray1451[i1] >> 8 & 0xff;
|
||||
int k1 = (anIntArray1451[i1] >> 8) & 0xff;
|
||||
k1 += j;
|
||||
if (k1 < 0) {
|
||||
k1 = 0;
|
||||
@@ -140,7 +140,7 @@ public class Image8 extends Draw2D {
|
||||
public void method361(int i, int k) {
|
||||
i += anInt1454;
|
||||
k += anInt1455;
|
||||
int l = i + k * Draw2D.width;
|
||||
int l = i + (k * Draw2D.width);
|
||||
int i1 = 0;
|
||||
int j1 = anInt1453;
|
||||
int k1 = anInt1452;
|
||||
@@ -153,7 +153,7 @@ public class Image8 extends Draw2D {
|
||||
i1 += j2 * k1;
|
||||
l += j2 * Draw2D.width;
|
||||
}
|
||||
if (k + j1 > Draw2D.bottom) {
|
||||
if ((k + j1) > Draw2D.bottom) {
|
||||
j1 -= (k + j1) - Draw2D.bottom;
|
||||
}
|
||||
if (i < Draw2D.left) {
|
||||
@@ -165,13 +165,13 @@ public class Image8 extends Draw2D {
|
||||
i2 += k2;
|
||||
l1 += k2;
|
||||
}
|
||||
if (i + k1 > Draw2D.right) {
|
||||
if ((i + k1) > Draw2D.right) {
|
||||
int l2 = (i + k1) - Draw2D.right;
|
||||
k1 -= l2;
|
||||
i2 += l2;
|
||||
l1 += l2;
|
||||
}
|
||||
if (k1 > 0 && j1 > 0) {
|
||||
if ((k1 > 0) && (j1 > 0)) {
|
||||
method362(j1, Draw2D.pixels, aByteArray1450, l1, l, k1, i1, anIntArray1451, i2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class LocEntity extends Entity {
|
||||
aType_1607 = SeqType.aTypeArray351[l1];
|
||||
anInt1599 = 0;
|
||||
anInt1608 = Game.anInt1161;
|
||||
if (flag && aType_1607.anInt356 != -1) {
|
||||
if (flag && (aType_1607.anInt356 != -1)) {
|
||||
anInt1599 = (int) (Math.random() * (double) aType_1607.anInt352);
|
||||
anInt1608 -= (int) (Math.random() * (double) aType_1607.method258(anInt1599));
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public class LocEntity extends Entity {
|
||||
int j = -1;
|
||||
if (aType_1607 != null) {
|
||||
int k = Game.anInt1161 - anInt1608;
|
||||
if (k > 100 && aType_1607.anInt356 > 0) {
|
||||
if ((k > 100) && (aType_1607.anInt356 > 0)) {
|
||||
k = 100;
|
||||
}
|
||||
while (k > aType_1607.method258(anInt1599)) {
|
||||
@@ -57,7 +57,7 @@ public class LocEntity extends Entity {
|
||||
continue;
|
||||
}
|
||||
anInt1599 -= aType_1607.anInt356;
|
||||
if (anInt1599 >= 0 && anInt1599 < aType_1607.anInt352) {
|
||||
if ((anInt1599 >= 0) && (anInt1599 < aType_1607.anInt352)) {
|
||||
continue;
|
||||
}
|
||||
aType_1607 = null;
|
||||
@@ -89,11 +89,11 @@ public class LocEntity extends Entity {
|
||||
int l = varbit.anInt649;
|
||||
int i1 = varbit.anInt650;
|
||||
int j1 = Game.anIntArray1232[i1 - l];
|
||||
i = aGame1609.anIntArray971[k] >> l & j1;
|
||||
i = (aGame1609.anIntArray971[k] >> l) & j1;
|
||||
} else if (anInt1602 != -1) {
|
||||
i = aGame1609.anIntArray971[anInt1602];
|
||||
}
|
||||
if (i < 0 || i >= anIntArray1600.length || anIntArray1600[i] == -1) {
|
||||
if ((i < 0) || (i >= anIntArray1600.length) || (anIntArray1600[i] == -1)) {
|
||||
return null;
|
||||
} else {
|
||||
return LocType.method572(anIntArray1600[i]);
|
||||
|
||||
+13
-13
@@ -178,9 +178,9 @@ public class LocType {
|
||||
for (int i2 = 0; i2 < model.vertexCount; i2++) {
|
||||
int j2 = model.vertexX[i2];
|
||||
int k2 = model.vertexZ[i2];
|
||||
int l2 = k + ((l - k) * (j2 + 64)) / 128;
|
||||
int i3 = j1 + ((i1 - j1) * (j2 + 64)) / 128;
|
||||
int j3 = l2 + ((i3 - l2) * (k2 + 64)) / 128;
|
||||
int l2 = k + (((l - k) * (j2 + 64)) / 128);
|
||||
int i3 = j1 + (((i1 - j1) * (j2 + 64)) / 128);
|
||||
int j3 = l2 + (((i3 - l2) * (k2 + 64)) / 128);
|
||||
model.vertexY[i2] += j3 - l1;
|
||||
}
|
||||
model.calculateBoundsY();
|
||||
@@ -207,11 +207,11 @@ public class LocType {
|
||||
int k = varbit.anInt649;
|
||||
int l = varbit.anInt650;
|
||||
int i1 = Game.anIntArray1232[l - k];
|
||||
i = aGame765.anIntArray971[j] >> k & i1;
|
||||
i = (aGame765.anIntArray971[j] >> k) & i1;
|
||||
} else if (anInt749 != -1) {
|
||||
i = aGame765.anIntArray971[anInt749];
|
||||
}
|
||||
if (i < 0 || i >= anIntArray759.length || anIntArray759[i] == -1) {
|
||||
if ((i < 0) || (i >= anIntArray759.length) || (anIntArray759[i] == -1)) {
|
||||
return null;
|
||||
} else {
|
||||
return method572(anIntArray759[i]);
|
||||
@@ -293,10 +293,10 @@ public class LocType {
|
||||
}
|
||||
}
|
||||
boolean flag;
|
||||
flag = anInt748 != 128 || anInt772 != 128 || anInt740 != 128;
|
||||
flag = (anInt748 != 128) || (anInt772 != 128) || (anInt740 != 128);
|
||||
boolean flag2;
|
||||
flag2 = anInt738 != 0 || anInt745 != 0 || anInt783 != 0;
|
||||
Model model_3 = new Model(anIntArray784 == null, SeqFrame.isNull(k), l == 0 && k == -1 && !flag && !flag2, model);
|
||||
flag2 = (anInt738 != 0) || (anInt745 != 0) || (anInt783 != 0);
|
||||
Model model_3 = new Model(anIntArray784 == null, SeqFrame.isNull(k), (l == 0) && (k == -1) && !flag && !flag2, model);
|
||||
if (k != -1) {
|
||||
model_3.createLabelReferences();
|
||||
model_3.applySequenceFrame(k);
|
||||
@@ -317,7 +317,7 @@ public class LocType {
|
||||
if (flag2) {
|
||||
model_3.translate(anInt738, anInt745, anInt783);
|
||||
}
|
||||
model_3.calculateNormals(64 + aByte737, 768 + aByte742 * 5, -50, -10, -50, !aBoolean769);
|
||||
model_3.calculateNormals(64 + aByte737, 768 + (aByte742 * 5), -50, -10, -50, !aBoolean769);
|
||||
if (anInt760 == 1) {
|
||||
model_3.anInt1654 = model_3.minY;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ public class LocType {
|
||||
if (j == 1) {
|
||||
int k = buffer.method408();
|
||||
if (k > 0) {
|
||||
if (anIntArray773 == null || aBoolean752) {
|
||||
if ((anIntArray773 == null) || aBoolean752) {
|
||||
anIntArray776 = new int[k];
|
||||
anIntArray773 = new int[k];
|
||||
for (int k1 = 0; k1 < k; k1++) {
|
||||
@@ -356,7 +356,7 @@ public class LocType {
|
||||
} else if (j == 5) {
|
||||
int l = buffer.method408();
|
||||
if (l > 0) {
|
||||
if (anIntArray773 == null || aBoolean752) {
|
||||
if ((anIntArray773 == null) || aBoolean752) {
|
||||
anIntArray776 = null;
|
||||
anIntArray773 = new int[l];
|
||||
for (int l1 = 0; l1 < l; l1++) {
|
||||
@@ -396,7 +396,7 @@ public class LocType {
|
||||
aByte737 = buffer.method409();
|
||||
} else if (j == 39) {
|
||||
aByte742 = buffer.method409();
|
||||
} else if (j >= 30 && j < 39) {
|
||||
} else if ((j >= 30) && (j < 39)) {
|
||||
if (aStringArray786 == null) {
|
||||
aStringArray786 = new String[5];
|
||||
}
|
||||
@@ -464,7 +464,7 @@ public class LocType {
|
||||
}
|
||||
} while (true);
|
||||
if (i == -1) {
|
||||
aBoolean778 = anIntArray773 != null && (anIntArray776 == null || anIntArray776[0] == 10);
|
||||
aBoolean778 = (anIntArray773 != null) && ((anIntArray776 == null) || (anIntArray776[0] == 10));
|
||||
if (aStringArray786 != null) {
|
||||
aBoolean778 = true;
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ public class NPCEntity extends PathingEntity {
|
||||
}
|
||||
|
||||
public Model method450() {
|
||||
if (super.anInt1526 >= 0 && super.anInt1529 == 0) {
|
||||
if ((super.anInt1526 >= 0) && (super.anInt1529 == 0)) {
|
||||
int k = SeqType.aTypeArray351[super.anInt1526].anIntArray353[super.anInt1527];
|
||||
int i1 = -1;
|
||||
if (super.anInt1517 >= 0 && super.anInt1517 != super.anInt1511) {
|
||||
if ((super.anInt1517 >= 0) && (super.anInt1517 != super.anInt1511)) {
|
||||
i1 = SeqType.aTypeArray351[super.anInt1517].anIntArray353[super.anInt1518];
|
||||
}
|
||||
return aType_1696.method164(i1, k, SeqType.aTypeArray351[super.anInt1526].anIntArray357);
|
||||
@@ -35,7 +35,7 @@ public class NPCEntity extends PathingEntity {
|
||||
return null;
|
||||
}
|
||||
super.anInt1507 = model.minY;
|
||||
if (super.anInt1520 != -1 && super.anInt1521 != -1) {
|
||||
if ((super.anInt1520 != -1) && (super.anInt1521 != -1)) {
|
||||
SpotAnimType type = SpotAnimType.aTypeArray403[super.anInt1520];
|
||||
Model model_1 = type.method266();
|
||||
if (model_1 != null) {
|
||||
@@ -46,7 +46,7 @@ public class NPCEntity extends PathingEntity {
|
||||
class30_sub2_sub4_sub6_2.applySequenceFrame(j);
|
||||
class30_sub2_sub4_sub6_2.labelFaces = null;
|
||||
class30_sub2_sub4_sub6_2.labelVertices = null;
|
||||
if (type.anInt410 != 128 || type.anInt411 != 128) {
|
||||
if ((type.anInt410 != 128) || (type.anInt411 != 128)) {
|
||||
class30_sub2_sub4_sub6_2.scale(type.anInt410, type.anInt410, type.anInt411);
|
||||
}
|
||||
class30_sub2_sub4_sub6_2.calculateNormals(64 + type.anInt413, 850 + type.anInt414, -30, -50, -30, true);
|
||||
|
||||
@@ -129,11 +129,11 @@ public class NPCType {
|
||||
int l = varbit.anInt649;
|
||||
int i1 = varbit.anInt650;
|
||||
int j1 = Game.anIntArray1232[i1 - l];
|
||||
j = aGame82.anIntArray971[k] >> l & j1;
|
||||
j = (aGame82.anIntArray971[k] >> l) & j1;
|
||||
} else if (anInt59 != -1) {
|
||||
j = aGame82.anIntArray971[anInt59];
|
||||
}
|
||||
if (j < 0 || j >= anIntArray88.length || anIntArray88[j] == -1) {
|
||||
if ((j < 0) || (j >= anIntArray88.length) || (anIntArray88[j] == -1)) {
|
||||
return null;
|
||||
} else {
|
||||
return method159(anIntArray88[j]);
|
||||
@@ -180,12 +180,12 @@ public class NPCType {
|
||||
}
|
||||
Model model_1 = Model.EMPTY;
|
||||
model_1.set(model, SeqFrame.isNull(k) & SeqFrame.isNull(j));
|
||||
if (k != -1 && j != -1) {
|
||||
if ((k != -1) && (j != -1)) {
|
||||
model_1.applySequenceFrames(k, j, ai);
|
||||
} else if (k != -1) {
|
||||
model_1.applySequenceFrame(k);
|
||||
}
|
||||
if (anInt91 != 128 || anInt86 != 128) {
|
||||
if ((anInt91 != 128) || (anInt86 != 128)) {
|
||||
model_1.scale(anInt91, anInt91, anInt86);
|
||||
}
|
||||
model_1.calculateBoundsCylinder();
|
||||
@@ -224,7 +224,7 @@ public class NPCType {
|
||||
anInt58 = buffer.method410();
|
||||
anInt83 = buffer.method410();
|
||||
anInt55 = buffer.method410();
|
||||
} else if (i >= 30 && i < 40) {
|
||||
} else if ((i >= 30) && (i < 40)) {
|
||||
if (aStringArray66 == null) {
|
||||
aStringArray66 = new String[5];
|
||||
}
|
||||
|
||||
+39
-39
@@ -108,7 +108,7 @@ public class ObjType {
|
||||
public static Image24 method200(int i, int j, int k) {
|
||||
if (k == 0) {
|
||||
Image24 image = (Image24) aCache_158.method222(i);
|
||||
if (image != null && image.anInt1445 != j && image.anInt1445 != -1) {
|
||||
if ((image != null) && (image.anInt1445 != j) && (image.anInt1445 != -1)) {
|
||||
image.method329();
|
||||
image = null;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class ObjType {
|
||||
if (j > 1) {
|
||||
int i1 = -1;
|
||||
for (int j1 = 0; j1 < 10; j1++) {
|
||||
if (j >= type.anIntArray201[j1] && type.anIntArray201[j1] != 0) {
|
||||
if ((j >= type.anIntArray201[j1]) && (type.anIntArray201[j1] != 0)) {
|
||||
i1 = type.anIntArray193[j1];
|
||||
}
|
||||
}
|
||||
@@ -164,20 +164,20 @@ public class ObjType {
|
||||
if (k > 0) {
|
||||
k3 = (int) ((double) k3 * 1.04D);
|
||||
}
|
||||
int l3 = Draw3D.sin[type.anInt190] * k3 >> 16;
|
||||
int i4 = Draw3D.cos[type.anInt190] * k3 >> 16;
|
||||
model.drawSimple(0, type.anInt198, type.anInt204, type.anInt190, type.anInt169, l3 + model.minY / 2 + type.anInt194, i4 + type.anInt194);
|
||||
int l3 = (Draw3D.sin[type.anInt190] * k3) >> 16;
|
||||
int i4 = (Draw3D.cos[type.anInt190] * k3) >> 16;
|
||||
model.drawSimple(0, type.anInt198, type.anInt204, type.anInt190, type.anInt169, l3 + (model.minY / 2) + type.anInt194, i4 + type.anInt194);
|
||||
for (int i5 = 31; i5 >= 0; i5--) {
|
||||
for (int j4 = 31; j4 >= 0; j4--) {
|
||||
if (class30_sub2_sub1_sub1_1.anIntArray1439[i5 + j4 * 32] == 0) {
|
||||
if (i5 > 0 && class30_sub2_sub1_sub1_1.anIntArray1439[(i5 - 1) + j4 * 32] > 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + j4 * 32] = 1;
|
||||
} else if (j4 > 0 && class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 - 1) * 32] > 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + j4 * 32] = 1;
|
||||
} else if (i5 < 31 && class30_sub2_sub1_sub1_1.anIntArray1439[i5 + 1 + j4 * 32] > 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + j4 * 32] = 1;
|
||||
} else if (j4 < 31 && class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 + 1) * 32] > 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + j4 * 32] = 1;
|
||||
if (class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 * 32)] == 0) {
|
||||
if ((i5 > 0) && (class30_sub2_sub1_sub1_1.anIntArray1439[(i5 - 1) + (j4 * 32)] > 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 * 32)] = 1;
|
||||
} else if ((j4 > 0) && (class30_sub2_sub1_sub1_1.anIntArray1439[i5 + ((j4 - 1) * 32)] > 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 * 32)] = 1;
|
||||
} else if ((i5 < 31) && (class30_sub2_sub1_sub1_1.anIntArray1439[i5 + 1 + (j4 * 32)] > 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 * 32)] = 1;
|
||||
} else if ((j4 < 31) && (class30_sub2_sub1_sub1_1.anIntArray1439[i5 + ((j4 + 1) * 32)] > 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[i5 + (j4 * 32)] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,15 +185,15 @@ public class ObjType {
|
||||
if (k > 0) {
|
||||
for (int j5 = 31; j5 >= 0; j5--) {
|
||||
for (int k4 = 31; k4 >= 0; k4--) {
|
||||
if (class30_sub2_sub1_sub1_1.anIntArray1439[j5 + k4 * 32] == 0) {
|
||||
if (j5 > 0 && class30_sub2_sub1_sub1_1.anIntArray1439[(j5 - 1) + k4 * 32] == 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + k4 * 32] = k;
|
||||
} else if (k4 > 0 && class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 - 1) * 32] == 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + k4 * 32] = k;
|
||||
} else if (j5 < 31 && class30_sub2_sub1_sub1_1.anIntArray1439[j5 + 1 + k4 * 32] == 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + k4 * 32] = k;
|
||||
} else if (k4 < 31 && class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 + 1) * 32] == 1) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + k4 * 32] = k;
|
||||
if (class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 * 32)] == 0) {
|
||||
if ((j5 > 0) && (class30_sub2_sub1_sub1_1.anIntArray1439[(j5 - 1) + (k4 * 32)] == 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 * 32)] = k;
|
||||
} else if ((k4 > 0) && (class30_sub2_sub1_sub1_1.anIntArray1439[j5 + ((k4 - 1) * 32)] == 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 * 32)] = k;
|
||||
} else if ((j5 < 31) && (class30_sub2_sub1_sub1_1.anIntArray1439[j5 + 1 + (k4 * 32)] == 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 * 32)] = k;
|
||||
} else if ((k4 < 31) && (class30_sub2_sub1_sub1_1.anIntArray1439[j5 + ((k4 + 1) * 32)] == 1)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[j5 + (k4 * 32)] = k;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,8 +201,8 @@ public class ObjType {
|
||||
} else if (k == 0) {
|
||||
for (int k5 = 31; k5 >= 0; k5--) {
|
||||
for (int l4 = 31; l4 >= 0; l4--) {
|
||||
if (class30_sub2_sub1_sub1_1.anIntArray1439[k5 + l4 * 32] == 0 && k5 > 0 && l4 > 0 && class30_sub2_sub1_sub1_1.anIntArray1439[(k5 - 1) + (l4 - 1) * 32] > 0) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[k5 + l4 * 32] = 0x302020;
|
||||
if ((class30_sub2_sub1_sub1_1.anIntArray1439[k5 + (l4 * 32)] == 0) && (k5 > 0) && (l4 > 0) && (class30_sub2_sub1_sub1_1.anIntArray1439[(k5 - 1) + ((l4 - 1) * 32)] > 0)) {
|
||||
class30_sub2_sub1_sub1_1.anIntArray1439[k5 + (l4 * 32)] = 0x302020;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ public class ObjType {
|
||||
if (!Model.validate(k)) {
|
||||
flag = false;
|
||||
}
|
||||
if (l != -1 && !Model.validate(l)) {
|
||||
if ((l != -1) && !Model.validate(l)) {
|
||||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
@@ -294,10 +294,10 @@ public class ObjType {
|
||||
if (!Model.validate(k)) {
|
||||
flag = false;
|
||||
}
|
||||
if (l != -1 && !Model.validate(l)) {
|
||||
if ((l != -1) && !Model.validate(l)) {
|
||||
flag = false;
|
||||
}
|
||||
if (i1 != -1 && !Model.validate(i1)) {
|
||||
if ((i1 != -1) && !Model.validate(i1)) {
|
||||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
@@ -328,10 +328,10 @@ public class ObjType {
|
||||
model = new Model(2, aclass30_sub2_sub4_sub6);
|
||||
}
|
||||
}
|
||||
if (i == 0 && aByte205 != 0) {
|
||||
if ((i == 0) && (aByte205 != 0)) {
|
||||
model.translate(0, aByte205, 0);
|
||||
}
|
||||
if (i == 1 && aByte154 != 0) {
|
||||
if ((i == 1) && (aByte154 != 0)) {
|
||||
model.translate(0, aByte154, 0);
|
||||
}
|
||||
if (anIntArray156 != null) {
|
||||
@@ -401,7 +401,7 @@ public class ObjType {
|
||||
anInt155 = type_1.anInt155;
|
||||
String s = "a";
|
||||
char c = type_1.aString170.charAt(0);
|
||||
if (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U') {
|
||||
if ((c == 'A') || (c == 'E') || (c == 'I') || (c == 'O') || (c == 'U')) {
|
||||
s = "an";
|
||||
}
|
||||
aByteArray178 = ("Swap this note at any bank for " + s + " " + type_1.aString170 + ".").getBytes();
|
||||
@@ -409,10 +409,10 @@ public class ObjType {
|
||||
}
|
||||
|
||||
public Model method201(int i) {
|
||||
if (anIntArray193 != null && i > 1) {
|
||||
if ((anIntArray193 != null) && (i > 1)) {
|
||||
int j = -1;
|
||||
for (int k = 0; k < 10; k++) {
|
||||
if (i >= anIntArray201[k] && anIntArray201[k] != 0) {
|
||||
if ((i >= anIntArray201[k]) && (anIntArray201[k] != 0)) {
|
||||
j = anIntArray193[k];
|
||||
}
|
||||
}
|
||||
@@ -428,7 +428,7 @@ public class ObjType {
|
||||
if (model == null) {
|
||||
return null;
|
||||
}
|
||||
if (anInt167 != 128 || anInt192 != 128 || anInt191 != 128) {
|
||||
if ((anInt167 != 128) || (anInt192 != 128) || (anInt191 != 128)) {
|
||||
model.scale(anInt167, anInt191, anInt192);
|
||||
}
|
||||
if (anIntArray156 != null) {
|
||||
@@ -443,10 +443,10 @@ public class ObjType {
|
||||
}
|
||||
|
||||
public Model method202(int i) {
|
||||
if (anIntArray193 != null && i > 1) {
|
||||
if ((anIntArray193 != null) && (i > 1)) {
|
||||
int j = -1;
|
||||
for (int k = 0; k < 10; k++) {
|
||||
if (i >= anIntArray201[k] && anIntArray201[k] != 0) {
|
||||
if ((i >= anIntArray201[k]) && (anIntArray201[k] != 0)) {
|
||||
j = anIntArray193[k];
|
||||
}
|
||||
}
|
||||
@@ -512,7 +512,7 @@ public class ObjType {
|
||||
aByte154 = buffer.method409();
|
||||
} else if (i == 26) {
|
||||
anInt164 = buffer.method410();
|
||||
} else if (i >= 30 && i < 35) {
|
||||
} else if ((i >= 30) && (i < 35)) {
|
||||
if (aStringArray168 == null) {
|
||||
aStringArray168 = new String[5];
|
||||
}
|
||||
@@ -520,7 +520,7 @@ public class ObjType {
|
||||
if (aStringArray168[i - 30].equalsIgnoreCase("hidden")) {
|
||||
aStringArray168[i - 30] = null;
|
||||
}
|
||||
} else if (i >= 35 && i < 40) {
|
||||
} else if ((i >= 35) && (i < 40)) {
|
||||
if (aStringArray189 == null) {
|
||||
aStringArray189 = new String[5];
|
||||
}
|
||||
@@ -551,7 +551,7 @@ public class ObjType {
|
||||
anInt179 = buffer.method410();
|
||||
} else if (i == 98) {
|
||||
anInt163 = buffer.method410();
|
||||
} else if (i >= 100 && i < 110) {
|
||||
} else if ((i >= 100) && (i < 110)) {
|
||||
if (anIntArray193 == null) {
|
||||
anIntArray193 = new int[10];
|
||||
anIntArray201 = new int[10];
|
||||
|
||||
+18
-18
@@ -56,7 +56,7 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
|
||||
public boolean method549(int i, int j, byte[] abyte0) {
|
||||
if (abyte0 == null || abyte0.length < 2) {
|
||||
if ((abyte0 == null) || (abyte0.length < 2)) {
|
||||
return false;
|
||||
}
|
||||
int k = abyte0.length - 2;
|
||||
@@ -73,7 +73,7 @@ public class OnDemand implements Runnable {
|
||||
public void method550() {
|
||||
try {
|
||||
int j = anInputStream1362.available();
|
||||
if (anInt1347 == 0 && j >= 6) {
|
||||
if ((anInt1347 == 0) && (j >= 6)) {
|
||||
aBoolean1357 = true;
|
||||
for (int k = 0; k < 6; k += anInputStream1362.read(aByteArray1339, k, 6 - k)) {
|
||||
}
|
||||
@@ -83,7 +83,7 @@ public class OnDemand implements Runnable {
|
||||
int i2 = aByteArray1339[5] & 0xff;
|
||||
aRequest_1369 = null;
|
||||
for (OnDemandRequest request = (OnDemandRequest) aList_1331.method252(); request != null; request = (OnDemandRequest) aList_1331.method254()) {
|
||||
if (request.anInt1419 == l && request.anInt1421 == j1) {
|
||||
if ((request.anInt1419 == l) && (request.anInt1421 == j1)) {
|
||||
aRequest_1369 = request;
|
||||
}
|
||||
if (aRequest_1369 != null) {
|
||||
@@ -104,21 +104,21 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
aRequest_1369 = null;
|
||||
} else {
|
||||
if (aRequest_1369.aByteArray1420 == null && i2 == 0) {
|
||||
if ((aRequest_1369.aByteArray1420 == null) && (i2 == 0)) {
|
||||
aRequest_1369.aByteArray1420 = new byte[l1];
|
||||
}
|
||||
if (aRequest_1369.aByteArray1420 == null && i2 != 0) {
|
||||
if ((aRequest_1369.aByteArray1420 == null) && (i2 != 0)) {
|
||||
throw new IOException("missing start of file");
|
||||
}
|
||||
}
|
||||
}
|
||||
anInt1346 = i2 * 500;
|
||||
anInt1347 = 500;
|
||||
if (anInt1347 > l1 - i2 * 500) {
|
||||
anInt1347 = l1 - i2 * 500;
|
||||
if (anInt1347 > (l1 - (i2 * 500))) {
|
||||
anInt1347 = l1 - (i2 * 500);
|
||||
}
|
||||
}
|
||||
if (anInt1347 > 0 && j >= anInt1347) {
|
||||
if ((anInt1347 > 0) && (j >= anInt1347)) {
|
||||
aBoolean1357 = true;
|
||||
byte[] abyte0 = aByteArray1339;
|
||||
int i1 = 0;
|
||||
@@ -128,11 +128,11 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
for (int k1 = 0; k1 < anInt1347; k1 += anInputStream1362.read(abyte0, k1 + i1, anInt1347 - k1)) {
|
||||
}
|
||||
if (anInt1347 + anInt1346 >= abyte0.length && aRequest_1369 != null) {
|
||||
if (((anInt1347 + anInt1346) >= abyte0.length) && (aRequest_1369 != null)) {
|
||||
if (aGame1343.aFileStoreArray970[0] != null) {
|
||||
aGame1343.aFileStoreArray970[aRequest_1369.anInt1419 + 1].method234(abyte0.length, abyte0, aRequest_1369.anInt1421);
|
||||
}
|
||||
if (!aRequest_1369.aBoolean1422 && aRequest_1369.anInt1419 == 3) {
|
||||
if (!aRequest_1369.aBoolean1422 && (aRequest_1369.anInt1419 == 3)) {
|
||||
aRequest_1369.aBoolean1422 = true;
|
||||
aRequest_1369.anInt1419 = 93;
|
||||
}
|
||||
@@ -235,7 +235,7 @@ public class OnDemand implements Runnable {
|
||||
public void method554(boolean flag) {
|
||||
int j = anIntArray1371.length;
|
||||
for (int k = 0; k < j; k++) {
|
||||
if (flag || anIntArray1356[k] != 0) {
|
||||
if (flag || (anIntArray1356[k] != 0)) {
|
||||
method563((byte) 2, 3, anIntArray1337[k]);
|
||||
method563((byte) 2, 3, anIntArray1350[k]);
|
||||
}
|
||||
@@ -250,7 +250,7 @@ public class OnDemand implements Runnable {
|
||||
try {
|
||||
if (aSocket1363 == null) {
|
||||
long l = System.currentTimeMillis();
|
||||
if (l - aLong1335 < 4000L) {
|
||||
if ((l - aLong1335) < 4000L) {
|
||||
return;
|
||||
}
|
||||
aLong1335 = l;
|
||||
@@ -295,7 +295,7 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
|
||||
public void method558(int i, int j) {
|
||||
if (i < 0 || i > anIntArrayArray1364.length || j < 0 || j > anIntArrayArray1364[i].length) {
|
||||
if ((i < 0) || (i > anIntArrayArray1364.length) || (j < 0) || (j > anIntArrayArray1364[i].length)) {
|
||||
return;
|
||||
}
|
||||
if (anIntArrayArray1364[i][j] == 0) {
|
||||
@@ -303,7 +303,7 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
synchronized (aDoublyLinkedList_1361) {
|
||||
for (OnDemandRequest request = (OnDemandRequest) aDoublyLinkedList_1361.method152(); request != null; request = (OnDemandRequest) aDoublyLinkedList_1361.method153()) {
|
||||
if (request.anInt1419 == i && request.anInt1421 == j) {
|
||||
if ((request.anInt1419 == i) && (request.anInt1421 == j)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -327,7 +327,7 @@ public class OnDemand implements Runnable {
|
||||
while (aBoolean1353) {
|
||||
anInt1341++;
|
||||
int i = 20;
|
||||
if (anInt1332 == 0 && aGame1343.aFileStoreArray970[0] != null) {
|
||||
if ((anInt1332 == 0) && (aGame1343.aFileStoreArray970[0] != null)) {
|
||||
i = 50;
|
||||
}
|
||||
try {
|
||||
@@ -342,7 +342,7 @@ public class OnDemand implements Runnable {
|
||||
aBoolean1357 = false;
|
||||
method567();
|
||||
method565();
|
||||
if (anInt1366 == 0 && j >= 5) {
|
||||
if ((anInt1366 == 0) && (j >= 5)) {
|
||||
break;
|
||||
}
|
||||
method568();
|
||||
@@ -387,7 +387,7 @@ public class OnDemand implements Runnable {
|
||||
anInt1373 = 0;
|
||||
aString1333 = "";
|
||||
}
|
||||
if (aGame1343.aBoolean1157 && aSocket1363 != null && anOutputStream1354 != null && (anInt1332 > 0 || aGame1343.aFileStoreArray970[0] == null)) {
|
||||
if (aGame1343.aBoolean1157 && (aSocket1363 != null) && (anOutputStream1354 != null) && ((anInt1332 > 0) || (aGame1343.aFileStoreArray970[0] == null))) {
|
||||
anInt1334++;
|
||||
if (anInt1334 > 500) {
|
||||
anInt1334 = 0;
|
||||
@@ -573,7 +573,7 @@ public class OnDemand implements Runnable {
|
||||
}
|
||||
|
||||
public void method568() {
|
||||
while (anInt1366 == 0 && anInt1367 < 10) {
|
||||
while ((anInt1366 == 0) && (anInt1367 < 10)) {
|
||||
if (anInt1332 == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -64,13 +64,13 @@ public class PathingEntity extends Entity {
|
||||
}
|
||||
|
||||
public void method445(int i, int j, boolean flag) {
|
||||
if (anInt1526 != -1 && SeqType.aTypeArray351[anInt1526].anInt364 == 1) {
|
||||
if ((anInt1526 != -1) && (SeqType.aTypeArray351[anInt1526].anInt364 == 1)) {
|
||||
anInt1526 = -1;
|
||||
}
|
||||
if (!flag) {
|
||||
int k = i - anIntArray1500[0];
|
||||
int l = j - anIntArray1501[0];
|
||||
if (k >= -8 && k <= 8 && l >= -8 && l <= 8) {
|
||||
if ((k >= -8) && (k <= 8) && (l >= -8) && (l <= 8)) {
|
||||
if (anInt1525 < 9) {
|
||||
anInt1525++;
|
||||
}
|
||||
@@ -90,8 +90,8 @@ public class PathingEntity extends Entity {
|
||||
anInt1503 = 0;
|
||||
anIntArray1500[0] = i;
|
||||
anIntArray1501[0] = j;
|
||||
anInt1550 = anIntArray1500[0] * 128 + anInt1540 * 64;
|
||||
anInt1551 = anIntArray1501[0] * 128 + anInt1540 * 64;
|
||||
anInt1550 = (anIntArray1500[0] * 128) + (anInt1540 * 64);
|
||||
anInt1551 = (anIntArray1501[0] * 128) + (anInt1540 * 64);
|
||||
}
|
||||
|
||||
public void method446() {
|
||||
@@ -141,7 +141,7 @@ public class PathingEntity extends Entity {
|
||||
j++;
|
||||
k--;
|
||||
}
|
||||
if (anInt1526 != -1 && SeqType.aTypeArray351[anInt1526].anInt364 == 1) {
|
||||
if ((anInt1526 != -1) && (SeqType.aTypeArray351[anInt1526].anInt364 == 1)) {
|
||||
anInt1526 = -1;
|
||||
}
|
||||
if (anInt1525 < 9) {
|
||||
|
||||
@@ -47,7 +47,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
if (aBoolean1699) {
|
||||
return model;
|
||||
}
|
||||
if (super.anInt1520 != -1 && super.anInt1521 != -1) {
|
||||
if ((super.anInt1520 != -1) && (super.anInt1521 != -1)) {
|
||||
SpotAnimType type = SpotAnimType.aTypeArray403[super.anInt1520];
|
||||
Model class30_sub2_sub4_sub6_2 = type.method266();
|
||||
if (class30_sub2_sub4_sub6_2 != null) {
|
||||
@@ -57,7 +57,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
model_3.applySequenceFrame(type.aType_407.anIntArray353[super.anInt1521]);
|
||||
model_3.labelFaces = null;
|
||||
model_3.labelVertices = null;
|
||||
if (type.anInt410 != 128 || type.anInt411 != 128) {
|
||||
if ((type.anInt410 != 128) || (type.anInt411 != 128)) {
|
||||
model_3.scale(type.anInt410, type.anInt410, type.anInt411);
|
||||
}
|
||||
model_3.calculateNormals(64 + type.anInt413, 850 + type.anInt414, -30, -50, -30, true);
|
||||
@@ -69,7 +69,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
if (Game.anInt1161 >= anInt1708) {
|
||||
aModel_1714 = null;
|
||||
}
|
||||
if (Game.anInt1161 >= anInt1707 && Game.anInt1161 < anInt1708) {
|
||||
if ((Game.anInt1161 >= anInt1707) && (Game.anInt1161 < anInt1708)) {
|
||||
Model model_1 = aModel_1714;
|
||||
model_1.translate(anInt1711 - super.anInt1550, anInt1712 - anInt1709, anInt1713 - super.anInt1551);
|
||||
if (super.anInt1510 == 512) {
|
||||
@@ -115,11 +115,11 @@ public class PlayerEntity extends PathingEntity {
|
||||
}
|
||||
int i1 = buffer.method408();
|
||||
anIntArray1717[j] = (k << 8) + i1;
|
||||
if (j == 0 && anIntArray1717[0] == 65535) {
|
||||
if ((j == 0) && (anIntArray1717[0] == 65535)) {
|
||||
aType_1698 = NPCType.method159(buffer.method410());
|
||||
break;
|
||||
}
|
||||
if (anIntArray1717[j] >= 512 && anIntArray1717[j] - 512 < ObjType.anInt203) {
|
||||
if ((anIntArray1717[j] >= 512) && ((anIntArray1717[j] - 512) < ObjType.anInt203)) {
|
||||
int l1 = ObjType.method198(anIntArray1717[j] - 512).anInt202;
|
||||
if (l1 != 0) {
|
||||
anInt1701 = l1;
|
||||
@@ -128,7 +128,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
}
|
||||
for (int l = 0; l < 5; l++) {
|
||||
int j1 = buffer.method408();
|
||||
if (j1 < 0 || j1 >= Game.anIntArrayArray1003[l].length) {
|
||||
if ((j1 < 0) || (j1 >= Game.anIntArrayArray1003[l].length)) {
|
||||
j1 = 0;
|
||||
}
|
||||
anIntArray1700[l] = j1;
|
||||
@@ -173,10 +173,10 @@ public class PlayerEntity extends PathingEntity {
|
||||
}
|
||||
}
|
||||
if (anIntArray1717[0] >= 256) {
|
||||
aLong1718 += anIntArray1717[0] - 256 >> 4;
|
||||
aLong1718 += (anIntArray1717[0] - 256) >> 4;
|
||||
}
|
||||
if (anIntArray1717[1] >= 256) {
|
||||
aLong1718 += anIntArray1717[1] - 256 >> 8;
|
||||
aLong1718 += (anIntArray1717[1] - 256) >> 8;
|
||||
}
|
||||
for (int i2 = 0; i2 < 5; i2++) {
|
||||
aLong1718 <<= 3;
|
||||
@@ -189,7 +189,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
public Model method452() {
|
||||
if (aType_1698 != null) {
|
||||
int j = -1;
|
||||
if (super.anInt1526 >= 0 && super.anInt1529 == 0) {
|
||||
if ((super.anInt1526 >= 0) && (super.anInt1529 == 0)) {
|
||||
j = SeqType.aTypeArray351[super.anInt1526].anIntArray353[super.anInt1527];
|
||||
} else if (super.anInt1517 >= 0) {
|
||||
j = SeqType.aTypeArray351[super.anInt1517].anIntArray353[super.anInt1518];
|
||||
@@ -201,19 +201,19 @@ public class PlayerEntity extends PathingEntity {
|
||||
int i1 = -1;
|
||||
int j1 = -1;
|
||||
int k1 = -1;
|
||||
if (super.anInt1526 >= 0 && super.anInt1529 == 0) {
|
||||
if ((super.anInt1526 >= 0) && (super.anInt1529 == 0)) {
|
||||
SeqType type = SeqType.aTypeArray351[super.anInt1526];
|
||||
k = type.anIntArray353[super.anInt1527];
|
||||
if (super.anInt1517 >= 0 && super.anInt1517 != super.anInt1511) {
|
||||
if ((super.anInt1517 >= 0) && (super.anInt1517 != super.anInt1511)) {
|
||||
i1 = SeqType.aTypeArray351[super.anInt1517].anIntArray353[super.anInt1518];
|
||||
}
|
||||
if (type.anInt360 >= 0) {
|
||||
j1 = type.anInt360;
|
||||
l += (long) j1 - anIntArray1717[5] << 8;
|
||||
l += ((long) j1 - anIntArray1717[5]) << 8;
|
||||
}
|
||||
if (type.anInt361 >= 0) {
|
||||
k1 = type.anInt361;
|
||||
l += (long) k1 - anIntArray1717[3] << 16;
|
||||
l += ((long) k1 - anIntArray1717[3]) << 16;
|
||||
}
|
||||
} else if (super.anInt1517 >= 0) {
|
||||
k = SeqType.aTypeArray351[super.anInt1517].anIntArray353[super.anInt1518];
|
||||
@@ -223,16 +223,16 @@ public class PlayerEntity extends PathingEntity {
|
||||
boolean flag = false;
|
||||
for (int i2 = 0; i2 < 12; i2++) {
|
||||
int k2 = anIntArray1717[i2];
|
||||
if (k1 >= 0 && i2 == 3) {
|
||||
if ((k1 >= 0) && (i2 == 3)) {
|
||||
k2 = k1;
|
||||
}
|
||||
if (j1 >= 0 && i2 == 5) {
|
||||
if ((j1 >= 0) && (i2 == 5)) {
|
||||
k2 = j1;
|
||||
}
|
||||
if (k2 >= 256 && k2 < 512 && !IDKType.aIDKTypeArray656[k2 - 256].method537()) {
|
||||
if ((k2 >= 256) && (k2 < 512) && !IDKType.aIDKTypeArray656[k2 - 256].method537()) {
|
||||
flag = true;
|
||||
}
|
||||
if (k2 >= 512 && !ObjType.method198(k2 - 512).method195(anInt1702)) {
|
||||
if ((k2 >= 512) && !ObjType.method198(k2 - 512).method195(anInt1702)) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
@@ -250,13 +250,13 @@ public class PlayerEntity extends PathingEntity {
|
||||
int j2 = 0;
|
||||
for (int l2 = 0; l2 < 12; l2++) {
|
||||
int i3 = anIntArray1717[l2];
|
||||
if (k1 >= 0 && l2 == 3) {
|
||||
if ((k1 >= 0) && (l2 == 3)) {
|
||||
i3 = k1;
|
||||
}
|
||||
if (j1 >= 0 && l2 == 5) {
|
||||
if ((j1 >= 0) && (l2 == 5)) {
|
||||
i3 = j1;
|
||||
}
|
||||
if (i3 >= 256 && i3 < 512) {
|
||||
if ((i3 >= 256) && (i3 < 512)) {
|
||||
Model model_3 = IDKType.aIDKTypeArray656[i3 - 256].method538();
|
||||
if (model_3 != null) {
|
||||
aclass30_sub2_sub4_sub6[j2++] = model_3;
|
||||
@@ -288,7 +288,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
}
|
||||
Model class30_sub2_sub4_sub6_2 = Model.EMPTY;
|
||||
class30_sub2_sub4_sub6_2.set(model_1, SeqFrame.isNull(k) & SeqFrame.isNull(i1));
|
||||
if (k != -1 && i1 != -1) {
|
||||
if ((k != -1) && (i1 != -1)) {
|
||||
class30_sub2_sub4_sub6_2.applySequenceFrames(k, i1, SeqType.aTypeArray351[super.anInt1526].anIntArray357);
|
||||
} else if (k != -1) {
|
||||
class30_sub2_sub4_sub6_2.applySequenceFrame(k);
|
||||
@@ -314,10 +314,10 @@ public class PlayerEntity extends PathingEntity {
|
||||
boolean flag = false;
|
||||
for (int i = 0; i < 12; i++) {
|
||||
int j = anIntArray1717[i];
|
||||
if (j >= 256 && j < 512 && !IDKType.aIDKTypeArray656[j - 256].method539()) {
|
||||
if ((j >= 256) && (j < 512) && !IDKType.aIDKTypeArray656[j - 256].method539()) {
|
||||
flag = true;
|
||||
}
|
||||
if (j >= 512 && !ObjType.method198(j - 512).method192(anInt1702)) {
|
||||
if ((j >= 512) && !ObjType.method198(j - 512).method192(anInt1702)) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
@@ -328,7 +328,7 @@ public class PlayerEntity extends PathingEntity {
|
||||
int k = 0;
|
||||
for (int l = 0; l < 12; l++) {
|
||||
int i1 = anIntArray1717[l];
|
||||
if (i1 >= 256 && i1 < 512) {
|
||||
if ((i1 >= 256) && (i1 < 512)) {
|
||||
Model model_1 = IDKType.aIDKTypeArray656[i1 - 256].method540();
|
||||
if (model_1 != null) {
|
||||
aclass30_sub2_sub4_sub6[k++] = model_1;
|
||||
|
||||
@@ -47,19 +47,19 @@ public class ProjectileEntity extends Entity {
|
||||
if (!aBoolean1579) {
|
||||
double d = l - anInt1580;
|
||||
double d2 = j - anInt1581;
|
||||
double d3 = Math.sqrt(d * d + d2 * d2);
|
||||
aDouble1585 = (double) anInt1580 + (d * (double) anInt1589) / d3;
|
||||
aDouble1586 = (double) anInt1581 + (d2 * (double) anInt1589) / d3;
|
||||
double d3 = Math.sqrt((d * d) + (d2 * d2));
|
||||
aDouble1585 = (double) anInt1580 + ((d * (double) anInt1589) / d3);
|
||||
aDouble1586 = (double) anInt1581 + ((d2 * (double) anInt1589) / d3);
|
||||
aDouble1587 = anInt1582;
|
||||
}
|
||||
double d1 = (anInt1572 + 1) - i;
|
||||
aDouble1574 = ((double) l - aDouble1585) / d1;
|
||||
aDouble1575 = ((double) j - aDouble1586) / d1;
|
||||
aDouble1576 = Math.sqrt(aDouble1574 * aDouble1574 + aDouble1575 * aDouble1575);
|
||||
aDouble1576 = Math.sqrt((aDouble1574 * aDouble1574) + (aDouble1575 * aDouble1575));
|
||||
if (!aBoolean1579) {
|
||||
aDouble1577 = -aDouble1576 * Math.tan((double) anInt1588 * 0.02454369D);
|
||||
}
|
||||
aDouble1578 = (2D * ((double) k - aDouble1587 - aDouble1577 * d1)) / (d1 * d1);
|
||||
aDouble1578 = (2D * ((double) k - aDouble1587 - (aDouble1577 * d1))) / (d1 * d1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -79,7 +79,7 @@ public class ProjectileEntity extends Entity {
|
||||
model_1.labelFaces = null;
|
||||
model_1.labelVertices = null;
|
||||
}
|
||||
if (aType_1592.anInt410 != 128 || aType_1592.anInt411 != 128) {
|
||||
if ((aType_1592.anInt410 != 128) || (aType_1592.anInt411 != 128)) {
|
||||
model_1.scale(aType_1592.anInt410, aType_1592.anInt410, aType_1592.anInt411);
|
||||
}
|
||||
model_1.rotateX(anInt1596);
|
||||
@@ -91,9 +91,9 @@ public class ProjectileEntity extends Entity {
|
||||
aBoolean1579 = true;
|
||||
aDouble1585 += aDouble1574 * (double) i;
|
||||
aDouble1586 += aDouble1575 * (double) i;
|
||||
aDouble1587 += aDouble1577 * (double) i + 0.5D * aDouble1578 * (double) i * (double) i;
|
||||
aDouble1587 += (aDouble1577 * (double) i) + (0.5D * aDouble1578 * (double) i * (double) i);
|
||||
aDouble1577 += aDouble1578 * (double) i;
|
||||
anInt1595 = (int) (Math.atan2(aDouble1574, aDouble1575) * 325.94900000000001D) + 1024 & 0x7ff;
|
||||
anInt1595 = ((int) (Math.atan2(aDouble1574, aDouble1575) * 325.94900000000001D) + 1024) & 0x7ff;
|
||||
anInt1596 = (int) (Math.atan2(aDouble1577, aDouble1576) * 325.94900000000001D) & 0x7ff;
|
||||
if (aType_1592.aType_407 != null) {
|
||||
for (anInt1594 += i; anInt1594 > aType_1592.aType_407.method258(anInt1593); ) {
|
||||
|
||||
+111
-111
@@ -51,14 +51,14 @@ public class SceneBuilder {
|
||||
}
|
||||
|
||||
public static int method170(int i, int i_3_) {
|
||||
int i_4_ = i + i_3_ * 57;
|
||||
i_4_ = i_4_ << 13 ^ i_4_;
|
||||
int i_5_ = i_4_ * (i_4_ * i_4_ * 15731 + 789221) + 1376312589 & 0x7fffffff;
|
||||
return i_5_ >> 19 & 0xff;
|
||||
int i_4_ = i + (i_3_ * 57);
|
||||
i_4_ = (i_4_ << 13) ^ i_4_;
|
||||
int i_5_ = ((i_4_ * ((i_4_ * i_4_ * 15731) + 789221)) + 1376312589) & 0x7fffffff;
|
||||
return (i_5_ >> 19) & 0xff;
|
||||
}
|
||||
|
||||
public static int method172(int i, int i_108_) {
|
||||
int i_109_ = (method176(i + 45365, i_108_ + 91923, 4) - 128 + (method176(i + 10294, i_108_ + 37821, 2) - 128 >> 1) + (method176(i, i_108_, 1) - 128 >> 2));
|
||||
int i_109_ = ((method176(i + 45365, i_108_ + 91923, 4) - 128) + ((method176(i + 10294, i_108_ + 37821, 2) - 128) >> 1) + ((method176(i, i_108_, 1) - 128) >> 2));
|
||||
i_109_ = (int) ((double) i_109_ * 0.3) + 35;
|
||||
if (i_109_ < 10) {
|
||||
i_109_ = 10;
|
||||
@@ -90,9 +90,9 @@ public class SceneBuilder {
|
||||
|
||||
public static int method176(int i, int i_144_, int i_145_) {
|
||||
int i_146_ = i / i_145_;
|
||||
int i_147_ = i & i_145_ - 1;
|
||||
int i_147_ = i & (i_145_ - 1);
|
||||
int i_148_ = i_144_ / i_145_;
|
||||
int i_149_ = i_144_ & i_145_ - 1;
|
||||
int i_149_ = i_144_ & (i_145_ - 1);
|
||||
int i_150_ = method186(i_146_, i_148_);
|
||||
int i_151_ = method186(i_146_ + 1, i_148_);
|
||||
int i_152_ = method186(i_146_, i_148_ + 1);
|
||||
@@ -107,29 +107,29 @@ public class SceneBuilder {
|
||||
if (i_159_ == 11) {
|
||||
i_159_ = 10;
|
||||
}
|
||||
if (i_159_ >= 5 && i_159_ <= 8) {
|
||||
if ((i_159_ >= 5) && (i_159_ <= 8)) {
|
||||
i_159_ = 4;
|
||||
}
|
||||
return type.method577(i_159_);
|
||||
}
|
||||
|
||||
public static int method184(int i, int i_216_, int i_217_, int i_218_) {
|
||||
int i_219_ = (65536 - Draw3D.cos[i_217_ * 1024 / i_218_] >> 1);
|
||||
return (i * (65536 - i_219_) >> 16) + (i_216_ * i_219_ >> 16);
|
||||
int i_219_ = ((65536 - Draw3D.cos[(i_217_ * 1024) / i_218_]) >> 1);
|
||||
return ((i * (65536 - i_219_)) >> 16) + ((i_216_ * i_219_) >> 16);
|
||||
}
|
||||
|
||||
public static int method186(int i, int i_221_) {
|
||||
int i_222_ = (method170(i - 1, i_221_ - 1) + method170(i + 1, i_221_ - 1) + method170(i - 1, i_221_ + 1) + method170(i + 1, i_221_ + 1));
|
||||
int i_223_ = (method170(i - 1, i_221_) + method170(i + 1, i_221_) + method170(i, i_221_ - 1) + method170(i, i_221_ + 1));
|
||||
int i_224_ = method170(i, i_221_);
|
||||
return i_222_ / 16 + i_223_ / 8 + i_224_ / 4;
|
||||
return (i_222_ / 16) + (i_223_ / 8) + (i_224_ / 4);
|
||||
}
|
||||
|
||||
public static int method187(int i, int i_225_) {
|
||||
if (i == -1) {
|
||||
return 12345678;
|
||||
}
|
||||
i_225_ = i_225_ * (i & 0x7f) / 128;
|
||||
i_225_ = (i_225_ * (i & 0x7f)) / 128;
|
||||
if (i_225_ < 2) {
|
||||
i_225_ = 2;
|
||||
} else if (i_225_ > 126) {
|
||||
@@ -143,7 +143,7 @@ public class SceneBuilder {
|
||||
int i_234_ = is[i_228_][i_229_ + 1][i_226_];
|
||||
int i_235_ = is[i_228_][i_229_ + 1][i_226_ + 1];
|
||||
int i_236_ = is[i_228_][i_229_][i_226_ + 1];
|
||||
int i_237_ = i_233_ + i_234_ + i_235_ + i_236_ >> 2;
|
||||
int i_237_ = (i_233_ + i_234_ + i_235_ + i_236_) >> 2;
|
||||
LocType type = LocType.method572(i_230_);
|
||||
int i_238_ = i_229_ + (i_226_ << 7) + (i_230_ << 14) + 1073741824;
|
||||
if (!type.aBoolean778) {
|
||||
@@ -152,7 +152,7 @@ public class SceneBuilder {
|
||||
byte i_239_ = (byte) ((i << 6) + i_227_);
|
||||
if (i_227_ == 22) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(22, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, 22, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -161,9 +161,9 @@ public class SceneBuilder {
|
||||
if (type.aBoolean767 && type.aBoolean778) {
|
||||
collisionMap.method213(i_226_, i_229_);
|
||||
}
|
||||
} else if (i_227_ == 10 || i_227_ == 11) {
|
||||
} else if ((i_227_ == 10) || (i_227_ == 11)) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(10, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, 10, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -175,7 +175,7 @@ public class SceneBuilder {
|
||||
}
|
||||
int i_241_;
|
||||
int i_242_;
|
||||
if (i == 1 || i == 3) {
|
||||
if ((i == 1) || (i == 3)) {
|
||||
i_241_ = type.anInt761;
|
||||
i_242_ = type.anInt744;
|
||||
} else {
|
||||
@@ -189,7 +189,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_227_ >= 12) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -200,7 +200,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_227_ == 0) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(0, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, 0, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -211,7 +211,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_227_ == 1) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(1, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, 1, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -221,10 +221,10 @@ public class SceneBuilder {
|
||||
collisionMap.method211(i_226_, i, i_229_, i_227_, type.aBoolean757);
|
||||
}
|
||||
} else if (i_227_ == 2) {
|
||||
int i_243_ = i + 1 & 0x3;
|
||||
int i_243_ = (i + 1) & 0x3;
|
||||
Entity entity;
|
||||
Entity entity_244_;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(2, 4 + i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
entity_244_ = type.method578(2, i_243_, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
@@ -237,7 +237,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_227_ == 3) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(3, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, 3, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -248,7 +248,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_227_ == 9) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -282,7 +282,7 @@ public class SceneBuilder {
|
||||
}
|
||||
if (i_227_ == 4) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -292,10 +292,10 @@ public class SceneBuilder {
|
||||
int i_248_ = 16;
|
||||
int i_249_ = graph.method300(i_231_, i_229_, i_226_);
|
||||
if (i_249_ > 0) {
|
||||
i_248_ = LocType.method572(i_249_ >> 14 & 0x7fff).anInt775;
|
||||
i_248_ = LocType.method572((i_249_ >> 14) & 0x7fff).anInt775;
|
||||
}
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -303,7 +303,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_238_, i_226_, i * 512, i_231_, anIntArray137[i] * i_248_, i_237_, entity, i_229_, i_239_, anIntArray144[i] * i_248_, anIntArray152[i]);
|
||||
} else if (i_227_ == 6) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -311,7 +311,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_238_, i_226_, i, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, 256);
|
||||
} else if (i_227_ == 7) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -319,7 +319,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_238_, i_226_, i, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, 512);
|
||||
} else if (i_227_ == 8) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true);
|
||||
@@ -355,13 +355,13 @@ public class SceneBuilder {
|
||||
}
|
||||
i_254_ += i_257_ - 1;
|
||||
int i_258_ = i_254_ & 0x3f;
|
||||
int i_259_ = i_254_ >> 6 & 0x3f;
|
||||
int i_259_ = (i_254_ >> 6) & 0x3f;
|
||||
int i_260_ = buffer.method408() >> 2;
|
||||
int i_261_ = i_259_ + i;
|
||||
int i_262_ = i_258_ + i_250_;
|
||||
if (i_261_ > 0 && i_262_ > 0 && i_261_ < 103 && i_262_ < 103) {
|
||||
if ((i_261_ > 0) && (i_262_ > 0) && (i_261_ < 103) && (i_262_ < 103)) {
|
||||
LocType type = LocType.method572(i_252_);
|
||||
if (i_260_ != 22 || !aBoolean151 || type.aBoolean778 || type.aBoolean736) {
|
||||
if ((i_260_ != 22) || !aBoolean151 || type.aBoolean778 || type.aBoolean736) {
|
||||
bool &= type.method579();
|
||||
bool_255_ = true;
|
||||
}
|
||||
@@ -409,17 +409,17 @@ public class SceneBuilder {
|
||||
int i_13_ = -50;
|
||||
int i_14_ = -10;
|
||||
int i_15_ = -50;
|
||||
int i_16_ = (int) Math.sqrt(i_13_ * i_13_ + i_14_ * i_14_ + i_15_ * i_15_);
|
||||
int i_17_ = i_12_ * i_16_ >> 8;
|
||||
for (int i_18_ = 1; i_18_ < anInt147 - 1; i_18_++) {
|
||||
for (int i_19_ = 1; i_19_ < anInt146 - 1; i_19_++) {
|
||||
int i_16_ = (int) Math.sqrt((i_13_ * i_13_) + (i_14_ * i_14_) + (i_15_ * i_15_));
|
||||
int i_17_ = (i_12_ * i_16_) >> 8;
|
||||
for (int i_18_ = 1; i_18_ < (anInt147 - 1); i_18_++) {
|
||||
for (int i_19_ = 1; i_19_ < (anInt146 - 1); i_19_++) {
|
||||
int i_20_ = (anIntArrayArrayArray129[i_10_][i_19_ + 1][i_18_] - anIntArrayArrayArray129[i_10_][i_19_ - 1][i_18_]);
|
||||
int i_21_ = (anIntArrayArrayArray129[i_10_][i_19_][i_18_ + 1] - anIntArrayArrayArray129[i_10_][i_19_][i_18_ - 1]);
|
||||
int i_22_ = (int) Math.sqrt(i_20_ * i_20_ + 65536 + i_21_ * i_21_);
|
||||
int i_22_ = (int) Math.sqrt((i_20_ * i_20_) + 65536 + (i_21_ * i_21_));
|
||||
int i_23_ = (i_20_ << 8) / i_22_;
|
||||
int i_24_ = 65536 / i_22_;
|
||||
int i_25_ = (i_21_ << 8) / i_22_;
|
||||
int i_26_ = i_11_ + (i_13_ * i_23_ + i_14_ * i_24_ + i_15_ * i_25_) / i_17_;
|
||||
int i_26_ = i_11_ + (((i_13_ * i_23_) + (i_14_ * i_24_) + (i_15_ * i_25_)) / i_17_);
|
||||
int i_27_ = ((is[i_19_ - 1][i_18_] >> 2) + (is[i_19_ + 1][i_18_] >> 3) + (is[i_19_][i_18_ - 1] >> 2) + (is[i_19_][i_18_ + 1] >> 3) + (is[i_19_][i_18_] >> 1));
|
||||
anIntArrayArray139[i_19_][i_18_] = i_26_ - i_27_;
|
||||
}
|
||||
@@ -431,10 +431,10 @@ public class SceneBuilder {
|
||||
anIntArray127[i_28_] = 0;
|
||||
anIntArray128[i_28_] = 0;
|
||||
}
|
||||
for (int i_29_ = -5; i_29_ < anInt146 + 5; i_29_++) {
|
||||
for (int i_29_ = -5; i_29_ < (anInt146 + 5); i_29_++) {
|
||||
for (int i_30_ = 0; i_30_ < anInt147; i_30_++) {
|
||||
int i_31_ = i_29_ + 5;
|
||||
if (i_31_ >= 0 && i_31_ < anInt146) {
|
||||
if ((i_31_ >= 0) && (i_31_ < anInt146)) {
|
||||
int i_32_ = aByteArrayArrayArray142[i_10_][i_31_][i_30_] & 0xff;
|
||||
if (i_32_ > 0) {
|
||||
FloType type = FloType.aTypeArray388[i_32_ - 1];
|
||||
@@ -446,7 +446,7 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
int i_33_ = i_29_ - 5;
|
||||
if (i_33_ >= 0 && i_33_ < anInt146) {
|
||||
if ((i_33_ >= 0) && (i_33_ < anInt146)) {
|
||||
int i_34_ = aByteArrayArrayArray142[i_10_][i_33_][i_30_] & 0xff;
|
||||
if (i_34_ > 0) {
|
||||
FloType type = FloType.aTypeArray388[i_34_ - 1];
|
||||
@@ -458,15 +458,15 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i_29_ >= 1 && i_29_ < anInt146 - 1) {
|
||||
if ((i_29_ >= 1) && (i_29_ < (anInt146 - 1))) {
|
||||
int i_35_ = 0;
|
||||
int i_36_ = 0;
|
||||
int i_37_ = 0;
|
||||
int i_38_ = 0;
|
||||
int i_39_ = 0;
|
||||
for (int i_40_ = -5; i_40_ < anInt147 + 5; i_40_++) {
|
||||
for (int i_40_ = -5; i_40_ < (anInt147 + 5); i_40_++) {
|
||||
int i_41_ = i_40_ + 5;
|
||||
if (i_41_ >= 0 && i_41_ < anInt147) {
|
||||
if ((i_41_ >= 0) && (i_41_ < anInt147)) {
|
||||
i_35_ += anIntArray124[i_41_];
|
||||
i_36_ += anIntArray125[i_41_];
|
||||
i_37_ += anIntArray126[i_41_];
|
||||
@@ -474,20 +474,20 @@ public class SceneBuilder {
|
||||
i_39_ += anIntArray128[i_41_];
|
||||
}
|
||||
int i_42_ = i_40_ - 5;
|
||||
if (i_42_ >= 0 && i_42_ < anInt147) {
|
||||
if ((i_42_ >= 0) && (i_42_ < anInt147)) {
|
||||
i_35_ -= anIntArray124[i_42_];
|
||||
i_36_ -= anIntArray125[i_42_];
|
||||
i_37_ -= anIntArray126[i_42_];
|
||||
i_38_ -= anIntArray127[i_42_];
|
||||
i_39_ -= anIntArray128[i_42_];
|
||||
}
|
||||
if (i_40_ >= 1 && i_40_ < anInt147 - 1 && (!aBoolean151 || (aByteArrayArrayArray149[0][i_29_][i_40_] & 0x2) != 0 || ((aByteArrayArrayArray149[i_10_][i_29_][i_40_] & 0x10) == 0 && (method182(i_40_, i_10_, i_29_, 0) == anInt131)))) {
|
||||
if ((i_40_ >= 1) && (i_40_ < (anInt147 - 1)) && (!aBoolean151 || ((aByteArrayArrayArray149[0][i_29_][i_40_] & 0x2) != 0) || (((aByteArrayArrayArray149[i_10_][i_29_][i_40_] & 0x10) == 0) && (method182(i_40_, i_10_, i_29_, 0) == anInt131)))) {
|
||||
if (i_10_ < anInt145) {
|
||||
anInt145 = i_10_;
|
||||
}
|
||||
int i_43_ = (aByteArrayArrayArray142[i_10_][i_29_][i_40_] & 0xff);
|
||||
int i_44_ = (aByteArrayArrayArray130[i_10_][i_29_][i_40_] & 0xff);
|
||||
if (i_43_ > 0 || i_44_ > 0) {
|
||||
if ((i_43_ > 0) || (i_44_ > 0)) {
|
||||
int i_45_ = anIntArrayArrayArray129[i_10_][i_29_][i_40_];
|
||||
int i_46_ = (anIntArrayArrayArray129[i_10_][i_29_ + 1][i_40_]);
|
||||
int i_47_ = (anIntArrayArrayArray129[i_10_][i_29_ + 1][i_40_ + 1]);
|
||||
@@ -499,11 +499,11 @@ public class SceneBuilder {
|
||||
int i_53_ = -1;
|
||||
int i_54_ = -1;
|
||||
if (i_43_ > 0) {
|
||||
int i_55_ = i_35_ * 256 / i_38_;
|
||||
int i_55_ = (i_35_ * 256) / i_38_;
|
||||
int i_56_ = i_36_ / i_39_;
|
||||
int i_57_ = i_37_ / i_39_;
|
||||
i_53_ = method177(i_55_, i_56_, i_57_);
|
||||
i_55_ = i_55_ + anInt123 & 0xff;
|
||||
i_55_ = (i_55_ + anInt123) & 0xff;
|
||||
i_57_ += anInt133;
|
||||
if (i_57_ < 0) {
|
||||
i_57_ = 0;
|
||||
@@ -514,13 +514,13 @@ public class SceneBuilder {
|
||||
}
|
||||
if (i_10_ > 0) {
|
||||
boolean bool = true;
|
||||
if (i_43_ == 0 && (aByteArrayArrayArray136[i_10_][i_29_][i_40_]) != 0) {
|
||||
if ((i_43_ == 0) && ((aByteArrayArrayArray136[i_10_][i_29_][i_40_]) != 0)) {
|
||||
bool = false;
|
||||
}
|
||||
if (i_44_ > 0 && !(FloType.aTypeArray388[i_44_ - 1].aBoolean393)) {
|
||||
if ((i_44_ > 0) && !(FloType.aTypeArray388[i_44_ - 1].aBoolean393)) {
|
||||
bool = false;
|
||||
}
|
||||
if (bool && i_45_ == i_46_ && i_45_ == i_47_ && i_45_ == i_48_) {
|
||||
if (bool && (i_45_ == i_46_) && (i_45_ == i_47_) && (i_45_ == i_48_)) {
|
||||
anIntArrayArrayArray135[i_10_][i_29_][i_40_] |= 0x924;
|
||||
}
|
||||
}
|
||||
@@ -555,8 +555,8 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i_64_ = 1; i_64_ < anInt147 - 1; i_64_++) {
|
||||
for (int i_65_ = 1; i_65_ < anInt146 - 1; i_65_++) {
|
||||
for (int i_64_ = 1; i_64_ < (anInt147 - 1); i_64_++) {
|
||||
for (int i_65_ = 1; i_65_ < (anInt146 - 1); i_65_++) {
|
||||
graph.method278(i_10_, i_65_, i_64_, method182(i_64_, i_10_, i_65_, 0));
|
||||
}
|
||||
}
|
||||
@@ -612,12 +612,12 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
int i_81_ = (i_78_ + 1 - i_77_) * (i_76_ - i_75_ + 1);
|
||||
int i_81_ = ((i_78_ + 1) - i_77_) * ((i_76_ - i_75_) + 1);
|
||||
if (i_81_ >= 8) {
|
||||
int i_82_ = 240;
|
||||
int i_83_ = (anIntArrayArrayArray129[i_78_][i_74_][i_75_] - i_82_);
|
||||
int i_84_ = anIntArrayArrayArray129[i_77_][i_74_][i_75_];
|
||||
SceneGraph.method277(i_71_, i_74_ * 128, i_84_, i_74_ * 128, i_76_ * 128 + 128, i_83_, i_75_ * 128, 1);
|
||||
SceneGraph.method277(i_71_, i_74_ * 128, i_84_, i_74_ * 128, (i_76_ * 128) + 128, i_83_, i_75_ * 128, 1);
|
||||
for (int i_85_ = i_77_; i_85_ <= i_78_; i_85_++) {
|
||||
for (int i_86_ = i_75_; i_86_ <= i_76_; i_86_++) {
|
||||
anIntArrayArrayArray135[i_85_][i_74_][i_86_] &= ~i_68_;
|
||||
@@ -656,12 +656,12 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
int i_93_ = (i_90_ + 1 - i_89_) * (i_88_ - i_87_ + 1);
|
||||
int i_93_ = ((i_90_ + 1) - i_89_) * ((i_88_ - i_87_) + 1);
|
||||
if (i_93_ >= 8) {
|
||||
int i_94_ = 240;
|
||||
int i_95_ = (anIntArrayArrayArray129[i_90_][i_87_][i_73_] - i_94_);
|
||||
int i_96_ = anIntArrayArrayArray129[i_89_][i_87_][i_73_];
|
||||
SceneGraph.method277(i_71_, i_87_ * 128, i_96_, i_88_ * 128 + 128, i_73_ * 128, i_95_, i_73_ * 128, 2);
|
||||
SceneGraph.method277(i_71_, i_87_ * 128, i_96_, (i_88_ * 128) + 128, i_73_ * 128, i_95_, i_73_ * 128, 2);
|
||||
for (int i_97_ = i_89_; i_97_ <= i_90_; i_97_++) {
|
||||
for (int i_98_ = i_87_; i_98_ <= i_88_; i_98_++) {
|
||||
anIntArrayArrayArray135[i_97_][i_98_][i_73_] &= ~i_69_;
|
||||
@@ -700,9 +700,9 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((i_100_ - i_99_ + 1) * (i_102_ - i_101_ + 1) >= 4) {
|
||||
if ((((i_100_ - i_99_) + 1) * ((i_102_ - i_101_) + 1)) >= 4) {
|
||||
int i_105_ = anIntArrayArrayArray129[i_72_][i_99_][i_101_];
|
||||
SceneGraph.method277(i_71_, i_99_ * 128, i_105_, i_100_ * 128 + 128, i_102_ * 128 + 128, i_105_, i_101_ * 128, 4);
|
||||
SceneGraph.method277(i_71_, i_99_ * 128, i_105_, (i_100_ * 128) + 128, (i_102_ * 128) + 128, i_105_, i_101_ * 128, 4);
|
||||
for (int i_106_ = i_99_; i_106_ <= i_100_; i_106_++) {
|
||||
for (int i_107_ = i_101_; i_107_ <= i_102_; i_107_++) {
|
||||
anIntArrayArrayArray135[i_72_][i_106_][i_107_] &= ~i_70_;
|
||||
@@ -717,20 +717,20 @@ public class SceneBuilder {
|
||||
}
|
||||
|
||||
public void method174(int i, int i_113_, int i_115_, int i_116_) {
|
||||
for (int i_117_ = i; i_117_ <= i + i_113_; i_117_++) {
|
||||
for (int i_118_ = i_116_; i_118_ <= i_116_ + i_115_; i_118_++) {
|
||||
if (i_118_ >= 0 && i_118_ < anInt146 && i_117_ >= 0 && i_117_ < anInt147) {
|
||||
for (int i_117_ = i; i_117_ <= (i + i_113_); i_117_++) {
|
||||
for (int i_118_ = i_116_; i_118_ <= (i_116_ + i_115_); i_118_++) {
|
||||
if ((i_118_ >= 0) && (i_118_ < anInt146) && (i_117_ >= 0) && (i_117_ < anInt147)) {
|
||||
aByteArrayArrayArray134[0][i_118_][i_117_] = (byte) 127;
|
||||
if (i_118_ == i_116_ && i_118_ > 0) {
|
||||
if ((i_118_ == i_116_) && (i_118_ > 0)) {
|
||||
anIntArrayArrayArray129[0][i_118_][i_117_] = anIntArrayArrayArray129[0][i_118_ - 1][i_117_];
|
||||
}
|
||||
if (i_118_ == i_116_ + i_115_ && i_118_ < anInt146 - 1) {
|
||||
if ((i_118_ == (i_116_ + i_115_)) && (i_118_ < (anInt146 - 1))) {
|
||||
anIntArrayArrayArray129[0][i_118_][i_117_] = anIntArrayArrayArray129[0][i_118_ + 1][i_117_];
|
||||
}
|
||||
if (i_117_ == i && i_117_ > 0) {
|
||||
if ((i_117_ == i) && (i_117_ > 0)) {
|
||||
anIntArrayArrayArray129[0][i_118_][i_117_] = anIntArrayArrayArray129[0][i_118_][i_117_ - 1];
|
||||
}
|
||||
if (i_117_ == i + i_113_ && i_117_ < anInt147 - 1) {
|
||||
if ((i_117_ == (i + i_113_)) && (i_117_ < (anInt147 - 1))) {
|
||||
anIntArrayArrayArray129[0][i_118_][i_117_] = anIntArrayArrayArray129[0][i_118_][i_117_ + 1];
|
||||
}
|
||||
}
|
||||
@@ -739,7 +739,7 @@ public class SceneBuilder {
|
||||
}
|
||||
|
||||
public void method175(int i, SceneGraph graph, SceneCollisionMap collisionMap, int i_119_, int i_120_, int i_121_, int i_122_, boolean bool, int i_123_) {
|
||||
if (aBoolean151 && (aByteArrayArrayArray149[0][i_121_][i] & 0x2) == 0 && ((aByteArrayArrayArray149[i_120_][i_121_][i] & 0x10) != 0 || method182(i, i_120_, i_121_, 0) != anInt131)) {
|
||||
if (aBoolean151 && ((aByteArrayArrayArray149[0][i_121_][i] & 0x2) == 0) && (((aByteArrayArrayArray149[i_120_][i_121_][i] & 0x10) != 0) || (method182(i, i_120_, i_121_, 0) != anInt131))) {
|
||||
return;
|
||||
}
|
||||
if (i_120_ < anInt145) {
|
||||
@@ -749,7 +749,7 @@ public class SceneBuilder {
|
||||
int i_125_ = anIntArrayArrayArray129[i_120_][i_121_ + 1][i];
|
||||
int i_126_ = anIntArrayArrayArray129[i_120_][i_121_ + 1][i + 1];
|
||||
int i_127_ = anIntArrayArrayArray129[i_120_][i_121_][i + 1];
|
||||
int i_128_ = i_124_ + i_125_ + i_126_ + i_127_ >> 2;
|
||||
int i_128_ = (i_124_ + i_125_ + i_126_ + i_127_) >> 2;
|
||||
LocType type = LocType.method572(i_122_);
|
||||
int i_129_ = i_121_ + (i << 7) + (i_122_ << 14) + 1073741824;
|
||||
if (!type.aBoolean778) {
|
||||
@@ -760,19 +760,19 @@ public class SceneBuilder {
|
||||
if (i_119_ == 22) {
|
||||
if (!aBoolean151 || type.aBoolean778 || type.aBoolean736) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(22, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, 22, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
}
|
||||
graph.method280(i_120_, i_128_, i, entity, i_130_, i_129_, i_121_);
|
||||
if (type.aBoolean767 && type.aBoolean778 && collisionMap != null) {
|
||||
if (type.aBoolean767 && type.aBoolean778 && (collisionMap != null)) {
|
||||
collisionMap.method213(i, i_121_);
|
||||
}
|
||||
}
|
||||
} else if (i_119_ == 10 || i_119_ == 11) {
|
||||
} else if ((i_119_ == 10) || (i_119_ == 11)) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(10, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, 10, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -784,7 +784,7 @@ public class SceneBuilder {
|
||||
}
|
||||
int i_132_;
|
||||
int i_133_;
|
||||
if (i_123_ == 1 || i_123_ == 3) {
|
||||
if ((i_123_ == 1) || (i_123_ == 3)) {
|
||||
i_132_ = type.anInt761;
|
||||
i_133_ = type.anInt744;
|
||||
} else {
|
||||
@@ -813,26 +813,26 @@ public class SceneBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_);
|
||||
}
|
||||
} else if (i_119_ >= 12) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
}
|
||||
graph.method284(i_129_, i_130_, i_128_, 1, entity, 1, i_120_, 0, i, i_121_);
|
||||
if (i_119_ >= 12 && i_119_ <= 17 && i_119_ != 13 && i_120_ > 0) {
|
||||
if ((i_119_ >= 12) && (i_119_ <= 17) && (i_119_ != 13) && (i_120_ > 0)) {
|
||||
anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x924;
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_);
|
||||
}
|
||||
} else if (i_119_ == 0) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(0, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, 0, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -871,7 +871,7 @@ public class SceneBuilder {
|
||||
anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x492;
|
||||
}
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757);
|
||||
}
|
||||
if (type.anInt775 != 16) {
|
||||
@@ -879,7 +879,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_119_ == 1) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(1, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, 1, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -896,14 +896,14 @@ public class SceneBuilder {
|
||||
aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50;
|
||||
}
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757);
|
||||
}
|
||||
} else if (i_119_ == 2) {
|
||||
int i_137_ = i_123_ + 1 & 0x3;
|
||||
int i_137_ = (i_123_ + 1) & 0x3;
|
||||
Entity entity;
|
||||
Entity entity_138_;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(2, 4 + i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
entity_138_ = type.method578(2, i_137_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
@@ -926,7 +926,7 @@ public class SceneBuilder {
|
||||
anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x249;
|
||||
}
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757);
|
||||
}
|
||||
if (type.anInt775 != 16) {
|
||||
@@ -934,7 +934,7 @@ public class SceneBuilder {
|
||||
}
|
||||
} else if (i_119_ == 3) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(3, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, 3, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -951,18 +951,18 @@ public class SceneBuilder {
|
||||
aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50;
|
||||
}
|
||||
}
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757);
|
||||
}
|
||||
} else if (i_119_ == 9) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
}
|
||||
graph.method284(i_129_, i_130_, i_128_, 1, entity, 1, i_120_, 0, i, i_121_);
|
||||
if (type.aBoolean767 && collisionMap != null) {
|
||||
if (type.aBoolean767 && (collisionMap != null)) {
|
||||
collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_);
|
||||
}
|
||||
} else {
|
||||
@@ -990,7 +990,7 @@ public class SceneBuilder {
|
||||
}
|
||||
if (i_119_ == 4) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -1000,10 +1000,10 @@ public class SceneBuilder {
|
||||
int i_142_ = 16;
|
||||
int i_143_ = graph.method300(i_120_, i_121_, i);
|
||||
if (i_143_ > 0) {
|
||||
i_142_ = LocType.method572(i_143_ >> 14 & 0x7fff).anInt775;
|
||||
i_142_ = LocType.method572((i_143_ >> 14) & 0x7fff).anInt775;
|
||||
}
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -1011,7 +1011,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_129_, i, i_123_ * 512, i_120_, anIntArray137[i_123_] * i_142_, i_128_, entity, i_121_, i_130_, anIntArray144[i_123_] * i_142_, anIntArray152[i_123_]);
|
||||
} else if (i_119_ == 6) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -1019,7 +1019,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_129_, i, i_123_, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, 256);
|
||||
} else if (i_119_ == 7) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -1027,7 +1027,7 @@ public class SceneBuilder {
|
||||
graph.method283(i_129_, i, i_123_, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, 512);
|
||||
} else if (i_119_ == 8) {
|
||||
Entity entity;
|
||||
if (type.anInt781 == -1 && type.anIntArray759 == null) {
|
||||
if ((type.anInt781 == -1) && (type.anIntArray759 == null)) {
|
||||
entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1);
|
||||
} else {
|
||||
entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true);
|
||||
@@ -1051,13 +1051,13 @@ public class SceneBuilder {
|
||||
if (i_157_ > 243) {
|
||||
i_156_ /= 2;
|
||||
}
|
||||
return (i / 4 << 10) + (i_156_ / 32 << 7) + i_157_ / 2;
|
||||
return ((i / 4) << 10) + ((i_156_ / 32) << 7) + (i_157_ / 2);
|
||||
}
|
||||
|
||||
public void method179(int i, int i_162_, SceneCollisionMap[] collisionMaps, int i_164_, int i_165_, byte[] is, int i_166_, int i_167_, int i_168_) {
|
||||
for (int i_169_ = 0; i_169_ < 8; i_169_++) {
|
||||
for (int i_170_ = 0; i_170_ < 8; i_170_++) {
|
||||
if (i_164_ + i_169_ > 0 && i_164_ + i_169_ < 103 && i_168_ + i_170_ > 0 && i_168_ + i_170_ < 103) {
|
||||
if (((i_164_ + i_169_) > 0) && ((i_164_ + i_169_) < 103) && ((i_168_ + i_170_) > 0) && ((i_168_ + i_170_) < 103)) {
|
||||
collisionMaps[i_167_].anIntArrayArray294[i_164_ + i_169_][(i_168_ + i_170_)] &= ~0x1000000;
|
||||
}
|
||||
}
|
||||
@@ -1066,7 +1066,7 @@ public class SceneBuilder {
|
||||
for (int i_172_ = 0; i_172_ < 4; i_172_++) {
|
||||
for (int i_173_ = 0; i_173_ < 64; i_173_++) {
|
||||
for (int i_174_ = 0; i_174_ < 64; i_174_++) {
|
||||
if (i_172_ == i && i_173_ >= i_165_ && i_173_ < i_165_ + 8 && i_174_ >= i_166_ && i_174_ < i_166_ + 8) {
|
||||
if ((i_172_ == i) && (i_173_ >= i_165_) && (i_173_ < (i_165_ + 8)) && (i_174_ >= i_166_) && (i_174_ < (i_166_ + 8))) {
|
||||
method181(i_168_ + ChunkUtil.method156(i_174_ & 0x7, i_162_, i_173_ & 0x7), 0, buffer, i_164_ + ChunkUtil.method155(i_162_, i_174_ & 0x7, i_173_ & 0x7), i_167_, i_162_, 0);
|
||||
} else {
|
||||
method181(-1, 0, buffer, -1, 0, 0, 0);
|
||||
@@ -1080,7 +1080,7 @@ public class SceneBuilder {
|
||||
for (int i_179_ = 0; i_179_ < 4; i_179_++) {
|
||||
for (int i_180_ = 0; i_180_ < 64; i_180_++) {
|
||||
for (int i_181_ = 0; i_181_ < 64; i_181_++) {
|
||||
if (i_175_ + i_180_ > 0 && i_175_ + i_180_ < 103 && i + i_181_ > 0 && i + i_181_ < 103) {
|
||||
if (((i_175_ + i_180_) > 0) && ((i_175_ + i_180_) < 103) && ((i + i_181_) > 0) && ((i + i_181_) < 103)) {
|
||||
collisionMaps[i_179_].anIntArrayArray294[i_175_ + i_180_][i + i_181_] &= ~0x1000000;
|
||||
}
|
||||
}
|
||||
@@ -1097,7 +1097,7 @@ public class SceneBuilder {
|
||||
}
|
||||
|
||||
public void method181(int i, int i_185_, Buffer buffer, int i_186_, int i_187_, int i_188_, int i_190_) {
|
||||
if (i_186_ >= 0 && i_186_ < 104 && i >= 0 && i < 104) {
|
||||
if ((i_186_ >= 0) && (i_186_ < 104) && (i >= 0) && (i < 104)) {
|
||||
aByteArrayArrayArray149[i_187_][i_186_][i] = (byte) 0;
|
||||
for (; ; ) {
|
||||
int i_191_ = buffer.method408();
|
||||
@@ -1118,7 +1118,7 @@ public class SceneBuilder {
|
||||
if (i_187_ == 0) {
|
||||
anIntArrayArrayArray129[0][i_186_][i] = -i_192_ * 8;
|
||||
} else {
|
||||
anIntArrayArrayArray129[i_187_][i_186_][i] = (anIntArrayArrayArray129[i_187_ - 1][i_186_][i] - i_192_ * 8);
|
||||
anIntArrayArrayArray129[i_187_][i_186_][i] = (anIntArrayArrayArray129[i_187_ - 1][i_186_][i] - (i_192_ * 8));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -1126,7 +1126,7 @@ public class SceneBuilder {
|
||||
if (i_191_ <= 49) {
|
||||
aByteArrayArrayArray130[i_187_][i_186_][i] = buffer.method409();
|
||||
aByteArrayArrayArray136[i_187_][i_186_][i] = (byte) ((i_191_ - 2) / 4);
|
||||
aByteArrayArrayArray148[i_187_][i_186_][i] = (byte) (i_191_ - 2 + i_188_ & 0x3);
|
||||
aByteArrayArrayArray148[i_187_][i_186_][i] = (byte) (((i_191_ - 2) + i_188_) & 0x3);
|
||||
} else if (i_191_ <= 81) {
|
||||
aByteArrayArrayArray149[i_187_][i_186_][i] = (byte) (i_191_ - 49);
|
||||
} else {
|
||||
@@ -1157,7 +1157,7 @@ public class SceneBuilder {
|
||||
if ((aByteArrayArrayArray149[i_194_][i_195_][i] & 0x8) != 0) {
|
||||
return 0;
|
||||
}
|
||||
if (i_194_ > 0 && (aByteArrayArrayArray149[1][i_195_][i] & 0x2) != 0) {
|
||||
if ((i_194_ > 0) && ((aByteArrayArrayArray149[1][i_195_][i] & 0x2) != 0)) {
|
||||
return i_194_ - 1;
|
||||
}
|
||||
return i_194_;
|
||||
@@ -1180,16 +1180,16 @@ public class SceneBuilder {
|
||||
}
|
||||
i_205_ += i_206_ - 1;
|
||||
int i_207_ = i_205_ & 0x3f;
|
||||
int i_208_ = i_205_ >> 6 & 0x3f;
|
||||
int i_208_ = (i_205_ >> 6) & 0x3f;
|
||||
int i_209_ = i_205_ >> 12;
|
||||
int i_210_ = buffer.method408();
|
||||
int i_211_ = i_210_ >> 2;
|
||||
int i_212_ = i_210_ & 0x3;
|
||||
if (i_209_ == i && i_208_ >= i_200_ && i_208_ < i_200_ + 8 && i_207_ >= i_198_ && i_207_ < i_198_ + 8) {
|
||||
if ((i_209_ == i) && (i_208_ >= i_200_) && (i_208_ < (i_200_ + 8)) && (i_207_ >= i_198_) && (i_207_ < (i_198_ + 8))) {
|
||||
LocType type = LocType.method572(i_203_);
|
||||
int i_213_ = i_197_ + ChunkUtil.method157(i_201_, type.anInt761, i_208_ & 0x7, i_207_ & 0x7, type.anInt744);
|
||||
int i_214_ = i_202_ + ChunkUtil.method158(i_207_ & 0x7, type.anInt761, i_201_, type.anInt744, i_208_ & 0x7);
|
||||
if (i_213_ > 0 && i_214_ > 0 && i_213_ < 103 && i_214_ < 103) {
|
||||
if ((i_213_ > 0) && (i_214_ > 0) && (i_213_ < 103) && (i_214_ < 103)) {
|
||||
int i_215_ = i_209_;
|
||||
if ((aByteArrayArrayArray149[1][i_213_][i_214_] & 0x2) == 2) {
|
||||
i_215_--;
|
||||
@@ -1198,7 +1198,7 @@ public class SceneBuilder {
|
||||
if (i_215_ >= 0) {
|
||||
collisionMap = collisionMaps[i_215_];
|
||||
}
|
||||
method175(i_214_, graph, collisionMap, i_211_, i_199_, i_213_, i_203_, false, i_212_ + i_201_ & 0x3);
|
||||
method175(i_214_, graph, collisionMap, i_211_, i_199_, i_213_, i_203_, false, (i_212_ + i_201_) & 0x3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1218,7 +1218,7 @@ public class SceneBuilder {
|
||||
i_220_ = 127 - i_220_;
|
||||
return i_220_;
|
||||
}
|
||||
i_220_ = i_220_ * (i & 0x7f) / 128;
|
||||
i_220_ = (i_220_ * (i & 0x7f)) / 128;
|
||||
if (i_220_ < 2) {
|
||||
i_220_ = 2;
|
||||
} else if (i_220_ > 126) {
|
||||
@@ -1244,14 +1244,14 @@ public class SceneBuilder {
|
||||
}
|
||||
i_267_ += i_268_ - 1;
|
||||
int i_269_ = i_267_ & 0x3f;
|
||||
int i_270_ = i_267_ >> 6 & 0x3f;
|
||||
int i_270_ = (i_267_ >> 6) & 0x3f;
|
||||
int i_271_ = i_267_ >> 12;
|
||||
int i_272_ = buffer.method408();
|
||||
int i_273_ = i_272_ >> 2;
|
||||
int i_274_ = i_272_ & 0x3;
|
||||
int i_275_ = i_270_ + i;
|
||||
int i_276_ = i_269_ + i_263_;
|
||||
if (i_275_ > 0 && i_276_ > 0 && i_275_ < 103 && i_276_ < 103) {
|
||||
if ((i_275_ > 0) && (i_276_ > 0) && (i_275_ < 103) && (i_276_ < 103)) {
|
||||
int i_277_ = i_271_;
|
||||
if ((aByteArrayArrayArray149[1][i_275_][i_276_] & 0x2) == 2) {
|
||||
i_277_--;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class SceneCollisionMap {
|
||||
public void method210() {
|
||||
for (int i = 0; i < anInt292; i++) {
|
||||
for (int j = 0; j < anInt293; j++) {
|
||||
if (i == 0 || j == 0 || i == anInt292 - 1 || j == anInt293 - 1) {
|
||||
if ((i == 0) || (j == 0) || (i == (anInt292 - 1)) || (j == (anInt293 - 1))) {
|
||||
anIntArrayArray294[i][j] = 0xffffff;
|
||||
} else {
|
||||
anIntArrayArray294[i][j] = 0x1000000;
|
||||
@@ -50,7 +50,7 @@ public class SceneCollisionMap {
|
||||
method214(k, i - 1, 2);
|
||||
}
|
||||
}
|
||||
if (l == 1 || l == 3) {
|
||||
if ((l == 1) || (l == 3)) {
|
||||
if (j == 0) {
|
||||
method214(k, i, 1);
|
||||
method214(k - 1, i + 1, 16);
|
||||
@@ -109,7 +109,7 @@ public class SceneCollisionMap {
|
||||
method214(k, i - 1, 1024);
|
||||
}
|
||||
}
|
||||
if (l == 1 || l == 3) {
|
||||
if ((l == 1) || (l == 3)) {
|
||||
if (j == 0) {
|
||||
method214(k, i, 512);
|
||||
method214(k - 1, i + 1, 8192);
|
||||
@@ -159,15 +159,15 @@ public class SceneCollisionMap {
|
||||
}
|
||||
l -= anInt290;
|
||||
i1 -= anInt291;
|
||||
if (j1 == 1 || j1 == 3) {
|
||||
if ((j1 == 1) || (j1 == 3)) {
|
||||
int l1 = j;
|
||||
j = k;
|
||||
k = l1;
|
||||
}
|
||||
for (int i2 = l; i2 < l + j; i2++) {
|
||||
if (i2 >= 0 && i2 < anInt292) {
|
||||
for (int j2 = i1; j2 < i1 + k; j2++) {
|
||||
if (j2 >= 0 && j2 < anInt293) {
|
||||
for (int i2 = l; i2 < (l + j); i2++) {
|
||||
if ((i2 >= 0) && (i2 < anInt292)) {
|
||||
for (int j2 = i1; j2 < (i1 + k); j2++) {
|
||||
if ((j2 >= 0) && (j2 < anInt293)) {
|
||||
method214(i2, j2, k1);
|
||||
}
|
||||
}
|
||||
@@ -206,7 +206,7 @@ public class SceneCollisionMap {
|
||||
method217(2, k, l - 1);
|
||||
}
|
||||
}
|
||||
if (j == 1 || j == 3) {
|
||||
if ((j == 1) || (j == 3)) {
|
||||
if (i == 0) {
|
||||
method217(1, k, l);
|
||||
method217(16, k - 1, l + 1);
|
||||
@@ -265,7 +265,7 @@ public class SceneCollisionMap {
|
||||
method217(1024, k, l - 1);
|
||||
}
|
||||
}
|
||||
if (j == 1 || j == 3) {
|
||||
if ((j == 1) || (j == 3)) {
|
||||
if (i == 0) {
|
||||
method217(512, k, l);
|
||||
method217(8192, k - 1, l + 1);
|
||||
@@ -315,15 +315,15 @@ public class SceneCollisionMap {
|
||||
}
|
||||
k -= anInt290;
|
||||
l -= anInt291;
|
||||
if (i == 1 || i == 3) {
|
||||
if ((i == 1) || (i == 3)) {
|
||||
int k1 = j;
|
||||
j = i1;
|
||||
i1 = k1;
|
||||
}
|
||||
for (int l1 = k; l1 < k + j; l1++) {
|
||||
if (l1 >= 0 && l1 < anInt292) {
|
||||
for (int i2 = l; i2 < l + i1; i2++) {
|
||||
if (i2 >= 0 && i2 < anInt293) {
|
||||
for (int l1 = k; l1 < (k + j); l1++) {
|
||||
if ((l1 >= 0) && (l1 < anInt292)) {
|
||||
for (int i2 = l; i2 < (l + i1); i2++) {
|
||||
if ((i2 >= 0) && (i2 < anInt293)) {
|
||||
method217(j1, l1, i2);
|
||||
}
|
||||
}
|
||||
@@ -342,7 +342,7 @@ public class SceneCollisionMap {
|
||||
}
|
||||
|
||||
public boolean method219(int i, int j, int k, int i1, int j1, int k1) {
|
||||
if (j == i && k == k1) {
|
||||
if ((j == i) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
j -= anInt290;
|
||||
@@ -351,170 +351,170 @@ public class SceneCollisionMap {
|
||||
k1 -= anInt291;
|
||||
if (j1 == 0) {
|
||||
if (i1 == 0) {
|
||||
if (j == i - 1 && k == k1) {
|
||||
if ((j == (i - 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1 && (anIntArrayArray294[j][k] & 0x1280120) == 0) {
|
||||
if ((j == i) && (k == (k1 + 1)) && ((anIntArrayArray294[j][k] & 0x1280120) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1 && (anIntArrayArray294[j][k] & 0x1280102) == 0) {
|
||||
if ((j == i) && (k == (k1 - 1)) && ((anIntArrayArray294[j][k] & 0x1280102) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 1) {
|
||||
if (j == i && k == k1 + 1) {
|
||||
if ((j == i) && (k == (k1 + 1))) {
|
||||
return true;
|
||||
}
|
||||
if (j == i - 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280108) == 0) {
|
||||
if ((j == (i - 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280108) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280180) == 0) {
|
||||
if ((j == (i + 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280180) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 2) {
|
||||
if (j == i + 1 && k == k1) {
|
||||
if ((j == (i + 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1 && (anIntArrayArray294[j][k] & 0x1280120) == 0) {
|
||||
if ((j == i) && (k == (k1 + 1)) && ((anIntArrayArray294[j][k] & 0x1280120) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1 && (anIntArrayArray294[j][k] & 0x1280102) == 0) {
|
||||
if ((j == i) && (k == (k1 - 1)) && ((anIntArrayArray294[j][k] & 0x1280102) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 3) {
|
||||
if (j == i && k == k1 - 1) {
|
||||
if ((j == i) && (k == (k1 - 1))) {
|
||||
return true;
|
||||
}
|
||||
if (j == i - 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280108) == 0) {
|
||||
if ((j == (i - 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280108) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280180) == 0) {
|
||||
if ((j == (i + 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280180) == 0)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (j1 == 2) {
|
||||
if (i1 == 0) {
|
||||
if (j == i - 1 && k == k1) {
|
||||
if ((j == (i - 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1) {
|
||||
if ((j == i) && (k == (k1 + 1))) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280180) == 0) {
|
||||
if ((j == (i + 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280180) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1 && (anIntArrayArray294[j][k] & 0x1280102) == 0) {
|
||||
if ((j == i) && (k == (k1 - 1)) && ((anIntArrayArray294[j][k] & 0x1280102) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 1) {
|
||||
if (j == i - 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280108) == 0) {
|
||||
if ((j == (i - 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280108) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1) {
|
||||
if ((j == i) && (k == (k1 + 1))) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1) {
|
||||
if ((j == (i + 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1 && (anIntArrayArray294[j][k] & 0x1280102) == 0) {
|
||||
if ((j == i) && (k == (k1 - 1)) && ((anIntArrayArray294[j][k] & 0x1280102) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 2) {
|
||||
if (j == i - 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280108) == 0) {
|
||||
if ((j == (i - 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280108) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1 && (anIntArrayArray294[j][k] & 0x1280120) == 0) {
|
||||
if ((j == i) && (k == (k1 + 1)) && ((anIntArrayArray294[j][k] & 0x1280120) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1) {
|
||||
if ((j == (i + 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1) {
|
||||
if ((j == i) && (k == (k1 - 1))) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 3) {
|
||||
if (j == i - 1 && k == k1) {
|
||||
if ((j == (i - 1)) && (k == k1)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 + 1 && (anIntArrayArray294[j][k] & 0x1280120) == 0) {
|
||||
if ((j == i) && (k == (k1 + 1)) && ((anIntArrayArray294[j][k] & 0x1280120) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i + 1 && k == k1 && (anIntArrayArray294[j][k] & 0x1280180) == 0) {
|
||||
if ((j == (i + 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x1280180) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1) {
|
||||
if ((j == i) && (k == (k1 - 1))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (j1 == 9) {
|
||||
if (j == i && k == k1 + 1 && (anIntArrayArray294[j][k] & 0x20) == 0) {
|
||||
if ((j == i) && (k == (k1 + 1)) && ((anIntArrayArray294[j][k] & 0x20) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i && k == k1 - 1 && (anIntArrayArray294[j][k] & 2) == 0) {
|
||||
if ((j == i) && (k == (k1 - 1)) && ((anIntArrayArray294[j][k] & 2) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j == i - 1 && k == k1 && (anIntArrayArray294[j][k] & 8) == 0) {
|
||||
if ((j == (i - 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 8) == 0)) {
|
||||
return true;
|
||||
}
|
||||
return j == i + 1 && k == k1 && (anIntArrayArray294[j][k] & 0x80) == 0;
|
||||
return (j == (i + 1)) && (k == k1) && ((anIntArrayArray294[j][k] & 0x80) == 0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean method220(int i, int j, int k, int l, int i1, int j1) {
|
||||
if (j1 == i && k == j) {
|
||||
if ((j1 == i) && (k == j)) {
|
||||
return true;
|
||||
}
|
||||
j1 -= anInt290;
|
||||
k -= anInt291;
|
||||
i -= anInt290;
|
||||
j -= anInt291;
|
||||
if (l == 6 || l == 7) {
|
||||
if ((l == 6) || (l == 7)) {
|
||||
if (l == 7) {
|
||||
i1 = i1 + 2 & 3;
|
||||
i1 = (i1 + 2) & 3;
|
||||
}
|
||||
if (i1 == 0) {
|
||||
if (j1 == i + 1 && k == j && (anIntArrayArray294[j1][k] & 0x80) == 0) {
|
||||
if ((j1 == (i + 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 0x80) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i && k == j - 1 && (anIntArrayArray294[j1][k] & 2) == 0) {
|
||||
if ((j1 == i) && (k == (j - 1)) && ((anIntArrayArray294[j1][k] & 2) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 1) {
|
||||
if (j1 == i - 1 && k == j && (anIntArrayArray294[j1][k] & 8) == 0) {
|
||||
if ((j1 == (i - 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 8) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i && k == j - 1 && (anIntArrayArray294[j1][k] & 2) == 0) {
|
||||
if ((j1 == i) && (k == (j - 1)) && ((anIntArrayArray294[j1][k] & 2) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 2) {
|
||||
if (j1 == i - 1 && k == j && (anIntArrayArray294[j1][k] & 8) == 0) {
|
||||
if ((j1 == (i - 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 8) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i && k == j + 1 && (anIntArrayArray294[j1][k] & 0x20) == 0) {
|
||||
if ((j1 == i) && (k == (j + 1)) && ((anIntArrayArray294[j1][k] & 0x20) == 0)) {
|
||||
return true;
|
||||
}
|
||||
} else if (i1 == 3) {
|
||||
if (j1 == i + 1 && k == j && (anIntArrayArray294[j1][k] & 0x80) == 0) {
|
||||
if ((j1 == (i + 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 0x80) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i && k == j + 1 && (anIntArrayArray294[j1][k] & 0x20) == 0) {
|
||||
if ((j1 == i) && (k == (j + 1)) && ((anIntArrayArray294[j1][k] & 0x20) == 0)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (l == 8) {
|
||||
if (j1 == i && k == j + 1 && (anIntArrayArray294[j1][k] & 0x20) == 0) {
|
||||
if ((j1 == i) && (k == (j + 1)) && ((anIntArrayArray294[j1][k] & 0x20) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i && k == j - 1 && (anIntArrayArray294[j1][k] & 2) == 0) {
|
||||
if ((j1 == i) && (k == (j - 1)) && ((anIntArrayArray294[j1][k] & 2) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (j1 == i - 1 && k == j && (anIntArrayArray294[j1][k] & 8) == 0) {
|
||||
if ((j1 == (i - 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 8) == 0)) {
|
||||
return true;
|
||||
}
|
||||
return j1 == i + 1 && k == j && (anIntArrayArray294[j1][k] & 0x80) == 0;
|
||||
return (j1 == (i + 1)) && (k == j) && ((anIntArrayArray294[j1][k] & 0x80) == 0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -522,19 +522,19 @@ public class SceneCollisionMap {
|
||||
public boolean method221(int i, int j, int k, int l, int i1, int j1, int k1) {
|
||||
int l1 = (j + j1) - 1;
|
||||
int i2 = (i + l) - 1;
|
||||
if (k >= j && k <= l1 && k1 >= i && k1 <= i2) {
|
||||
if ((k >= j) && (k <= l1) && (k1 >= i) && (k1 <= i2)) {
|
||||
return true;
|
||||
}
|
||||
if (k == j - 1 && k1 >= i && k1 <= i2 && (anIntArrayArray294[k - anInt290][k1 - anInt291] & 8) == 0 && (i1 & 8) == 0) {
|
||||
if ((k == (j - 1)) && (k1 >= i) && (k1 <= i2) && ((anIntArrayArray294[k - anInt290][k1 - anInt291] & 8) == 0) && ((i1 & 8) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (k == l1 + 1 && k1 >= i && k1 <= i2 && (anIntArrayArray294[k - anInt290][k1 - anInt291] & 0x80) == 0 && (i1 & 2) == 0) {
|
||||
if ((k == (l1 + 1)) && (k1 >= i) && (k1 <= i2) && ((anIntArrayArray294[k - anInt290][k1 - anInt291] & 0x80) == 0) && ((i1 & 2) == 0)) {
|
||||
return true;
|
||||
}
|
||||
if (k1 == i - 1 && k >= j && k <= l1 && (anIntArrayArray294[k - anInt290][k1 - anInt291] & 2) == 0 && (i1 & 4) == 0) {
|
||||
if ((k1 == (i - 1)) && (k >= j) && (k <= l1) && ((anIntArrayArray294[k - anInt290][k1 - anInt291] & 2) == 0) && ((i1 & 4) == 0)) {
|
||||
return true;
|
||||
}
|
||||
return k1 == i2 + 1 && k >= j && k <= l1 && (anIntArrayArray294[k - anInt290][k1 - anInt291] & 0x20) == 0 && (i1 & 1) == 0;
|
||||
return (k1 == (i2 + 1)) && (k >= j) && (k <= l1) && ((anIntArrayArray294[k - anInt290][k1 - anInt291] & 0x20) == 0) && ((i1 & 1) == 0);
|
||||
}
|
||||
|
||||
}
|
||||
+237
-237
File diff suppressed because it is too large.
Load diff
@@ -28,7 +28,7 @@ public class SceneTileOverlay {
|
||||
public final int anInt687;
|
||||
|
||||
public SceneTileOverlay(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) {
|
||||
aBoolean683 = i3 == l2 && i3 == l && i3 == k2;
|
||||
aBoolean683 = (i3 == l2) && (i3 == l) && (i3 == k2);
|
||||
anInt684 = j3;
|
||||
anInt685 = k1;
|
||||
anInt686 = i2;
|
||||
@@ -48,14 +48,14 @@ public class SceneTileOverlay {
|
||||
int j6 = i * c;
|
||||
for (int k6 = 0; k6 < l5; k6++) {
|
||||
int l6 = ai[k6];
|
||||
if ((l6 & 1) == 0 && l6 <= 8) {
|
||||
l6 = (l6 - k1 - k1 - 1 & 7) + 1;
|
||||
if (((l6 & 1) == 0) && (l6 <= 8)) {
|
||||
l6 = ((l6 - k1 - k1 - 1) & 7) + 1;
|
||||
}
|
||||
if (l6 > 8 && l6 <= 12) {
|
||||
l6 = (l6 - 9 - k1 & 3) + 9;
|
||||
if ((l6 > 8) && (l6 <= 12)) {
|
||||
l6 = ((l6 - 9 - k1) & 3) + 9;
|
||||
}
|
||||
if (l6 > 12 && l6 <= 16) {
|
||||
l6 = (l6 - 13 - k1 & 3) + 13;
|
||||
if ((l6 > 12) && (l6 <= 16)) {
|
||||
l6 = ((l6 - 13 - k1) & 3) + 13;
|
||||
}
|
||||
int i7;
|
||||
int k7;
|
||||
@@ -71,9 +71,9 @@ public class SceneTileOverlay {
|
||||
} else if (l6 == 2) {
|
||||
i7 = i6 + i5;
|
||||
k7 = j6;
|
||||
i8 = i3 + l2 >> 1;
|
||||
k8 = l1 + i4 >> 1;
|
||||
j9 = j + l3 >> 1;
|
||||
i8 = (i3 + l2) >> 1;
|
||||
k8 = (l1 + i4) >> 1;
|
||||
j9 = (j + l3) >> 1;
|
||||
} else if (l6 == 3) {
|
||||
i7 = i6 + c;
|
||||
k7 = j6;
|
||||
@@ -83,9 +83,9 @@ public class SceneTileOverlay {
|
||||
} else if (l6 == 4) {
|
||||
i7 = i6 + c;
|
||||
k7 = j6 + i5;
|
||||
i8 = l2 + l >> 1;
|
||||
k8 = i4 + j2 >> 1;
|
||||
j9 = l3 + j1 >> 1;
|
||||
i8 = (l2 + l) >> 1;
|
||||
k8 = (i4 + j2) >> 1;
|
||||
j9 = (l3 + j1) >> 1;
|
||||
} else if (l6 == 5) {
|
||||
i7 = i6 + c;
|
||||
k7 = j6 + c;
|
||||
@@ -95,9 +95,9 @@ public class SceneTileOverlay {
|
||||
} else if (l6 == 6) {
|
||||
i7 = i6 + i5;
|
||||
k7 = j6 + c;
|
||||
i8 = l + k2 >> 1;
|
||||
k8 = j2 + k >> 1;
|
||||
j9 = j1 + k3 >> 1;
|
||||
i8 = (l + k2) >> 1;
|
||||
k8 = (j2 + k) >> 1;
|
||||
j9 = (j1 + k3) >> 1;
|
||||
} else if (l6 == 7) {
|
||||
i7 = i6;
|
||||
k7 = j6 + c;
|
||||
@@ -107,33 +107,33 @@ public class SceneTileOverlay {
|
||||
} else if (l6 == 8) {
|
||||
i7 = i6;
|
||||
k7 = j6 + i5;
|
||||
i8 = k2 + i3 >> 1;
|
||||
k8 = k + l1 >> 1;
|
||||
j9 = k3 + j >> 1;
|
||||
i8 = (k2 + i3) >> 1;
|
||||
k8 = (k + l1) >> 1;
|
||||
j9 = (k3 + j) >> 1;
|
||||
} else if (l6 == 9) {
|
||||
i7 = i6 + i5;
|
||||
k7 = j6 + j5;
|
||||
i8 = i3 + l2 >> 1;
|
||||
k8 = l1 + i4 >> 1;
|
||||
j9 = j + l3 >> 1;
|
||||
i8 = (i3 + l2) >> 1;
|
||||
k8 = (l1 + i4) >> 1;
|
||||
j9 = (j + l3) >> 1;
|
||||
} else if (l6 == 10) {
|
||||
i7 = i6 + k5;
|
||||
k7 = j6 + i5;
|
||||
i8 = l2 + l >> 1;
|
||||
k8 = i4 + j2 >> 1;
|
||||
j9 = l3 + j1 >> 1;
|
||||
i8 = (l2 + l) >> 1;
|
||||
k8 = (i4 + j2) >> 1;
|
||||
j9 = (l3 + j1) >> 1;
|
||||
} else if (l6 == 11) {
|
||||
i7 = i6 + i5;
|
||||
k7 = j6 + k5;
|
||||
i8 = l + k2 >> 1;
|
||||
k8 = j2 + k >> 1;
|
||||
j9 = j1 + k3 >> 1;
|
||||
i8 = (l + k2) >> 1;
|
||||
k8 = (j2 + k) >> 1;
|
||||
j9 = (j1 + k3) >> 1;
|
||||
} else if (l6 == 12) {
|
||||
i7 = i6 + j5;
|
||||
k7 = j6 + i5;
|
||||
i8 = k2 + i3 >> 1;
|
||||
k8 = k + l1 >> 1;
|
||||
j9 = k3 + j >> 1;
|
||||
i8 = (k2 + i3) >> 1;
|
||||
k8 = (k + l1) >> 1;
|
||||
j9 = (k3 + j) >> 1;
|
||||
} else if (l6 == 13) {
|
||||
i7 = i6 + j5;
|
||||
k7 = j6 + j5;
|
||||
@@ -184,13 +184,13 @@ public class SceneTileOverlay {
|
||||
int k10 = ai3[l7 + 3];
|
||||
l7 += 4;
|
||||
if (k9 < 4) {
|
||||
k9 = k9 - k1 & 3;
|
||||
k9 = (k9 - k1) & 3;
|
||||
}
|
||||
if (i10 < 4) {
|
||||
i10 = i10 - k1 & 3;
|
||||
i10 = (i10 - k1) & 3;
|
||||
}
|
||||
if (k10 < 4) {
|
||||
k10 = k10 - k1 & 3;
|
||||
k10 = (k10 - k1) & 3;
|
||||
}
|
||||
anIntArray679[j8] = k9;
|
||||
anIntArray680[j8] = i10;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class SeqFrame {
|
||||
* @return the {@link SeqFrame} or <code>null</code> if it does not exist.
|
||||
*/
|
||||
public static SeqFrame get(int id) {
|
||||
if (instances == null || id < 0 || id >= instances.length) {
|
||||
if ((instances == null) || (id < 0) || (id >= instances.length)) {
|
||||
return null;
|
||||
} else {
|
||||
return instances[id];
|
||||
|
||||
@@ -73,7 +73,7 @@ public class Signlink implements Runnable {
|
||||
|
||||
public static String findcachedir() {
|
||||
String[] as = {"c:/windows/", "c:/winnt/", "d:/windows/", "d:/winnt/", "e:/windows/", "e:/winnt/", "f:/windows/", "f:/winnt/", "c:/", "~/", "/tmp/", "", "c:/rscache", "/rscache"};
|
||||
if (storeid < 32 || storeid > 34) {
|
||||
if ((storeid < 32) || (storeid > 34)) {
|
||||
storeid = 32;
|
||||
}
|
||||
String s = ".file_store_" + storeid;
|
||||
@@ -98,7 +98,7 @@ public class Signlink implements Runnable {
|
||||
public static int getuid(String s) {
|
||||
try {
|
||||
File file = new File(s + "uid.dat");
|
||||
if (!file.exists() || file.length() < 4L) {
|
||||
if (!file.exists() || (file.length() < 4L)) {
|
||||
DataOutputStream dataoutputstream = new DataOutputStream(new FileOutputStream(s + "uid.dat"));
|
||||
dataoutputstream.writeInt((int) (Math.random() * 99999999D));
|
||||
dataoutputstream.close();
|
||||
@@ -211,7 +211,7 @@ public class Signlink implements Runnable {
|
||||
uid = getuid(s);
|
||||
try {
|
||||
File file = new File(s + "main_file_cache.dat");
|
||||
if (file.exists() && file.length() > 0x3200000L) {
|
||||
if (file.exists() && (file.length() > 0x3200000L)) {
|
||||
file.delete();
|
||||
}
|
||||
cache_dat = new RandomAccessFile(s + "main_file_cache.dat", "rw");
|
||||
|
||||
@@ -57,7 +57,7 @@ public class SoundEnvelope {
|
||||
}
|
||||
anInt544 += anInt543;
|
||||
anInt545++;
|
||||
return anInt544 - anInt543 >> 15;
|
||||
return (anInt544 - anInt543) >> 15;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class SoundFilter {
|
||||
}
|
||||
|
||||
public float method541(int i, int j, float f) {
|
||||
float f1 = (float) anIntArrayArrayArray667[i][0][j] + f * (float) (anIntArrayArrayArray667[i][1][j] - anIntArrayArrayArray667[i][0][j]);
|
||||
float f1 = (float) anIntArrayArrayArray667[i][0][j] + (f * (float) (anIntArrayArrayArray667[i][1][j] - anIntArrayArrayArray667[i][0][j]));
|
||||
f1 *= 0.001525879F;
|
||||
return 1.0F - (float) Math.pow(10D, -f1 / 20F);
|
||||
}
|
||||
@@ -28,14 +28,14 @@ public class SoundFilter {
|
||||
}
|
||||
|
||||
public float method543(float f, int i, int j) {
|
||||
float f1 = (float) anIntArrayArrayArray666[j][0][i] + f * (float) (anIntArrayArrayArray666[j][1][i] - anIntArrayArrayArray666[j][0][i]);
|
||||
float f1 = (float) anIntArrayArrayArray666[j][0][i] + (f * (float) (anIntArrayArrayArray666[j][1][i] - anIntArrayArrayArray666[j][0][i]));
|
||||
f1 *= 0.0001220703F;
|
||||
return method542(f1);
|
||||
}
|
||||
|
||||
public int method544(int i, float f) {
|
||||
if (i == 0) {
|
||||
float f1 = (float) anIntArray668[0] + (float) (anIntArray668[1] - anIntArray668[0]) * f;
|
||||
float f1 = (float) anIntArray668[0] + ((float) (anIntArray668[1] - anIntArray668[0]) * f);
|
||||
f1 *= 0.003051758F;
|
||||
aFloat671 = (float) Math.pow(0.10000000000000001D, f1 / 20F);
|
||||
anInt672 = (int) (aFloat671 * 65536F);
|
||||
@@ -50,20 +50,20 @@ public class SoundFilter {
|
||||
float f3 = method541(i, k, f);
|
||||
float f4 = -2F * f3 * (float) Math.cos(method543(f, k, i));
|
||||
float f5 = f3 * f3;
|
||||
aFloatArrayArray669[i][k * 2 + 1] = aFloatArrayArray669[i][k * 2 - 1] * f5;
|
||||
aFloatArrayArray669[i][k * 2] = aFloatArrayArray669[i][k * 2 - 1] * f4 + aFloatArrayArray669[i][k * 2 - 2] * f5;
|
||||
for (int j1 = k * 2 - 1; j1 >= 2; j1--) {
|
||||
aFloatArrayArray669[i][j1] += aFloatArrayArray669[i][j1 - 1] * f4 + aFloatArrayArray669[i][j1 - 2] * f5;
|
||||
aFloatArrayArray669[i][(k * 2) + 1] = aFloatArrayArray669[i][(k * 2) - 1] * f5;
|
||||
aFloatArrayArray669[i][k * 2] = (aFloatArrayArray669[i][(k * 2) - 1] * f4) + (aFloatArrayArray669[i][(k * 2) - 2] * f5);
|
||||
for (int j1 = (k * 2) - 1; j1 >= 2; j1--) {
|
||||
aFloatArrayArray669[i][j1] += (aFloatArrayArray669[i][j1 - 1] * f4) + (aFloatArrayArray669[i][j1 - 2] * f5);
|
||||
}
|
||||
aFloatArrayArray669[i][1] += aFloatArrayArray669[i][0] * f4 + f5;
|
||||
aFloatArrayArray669[i][1] += (aFloatArrayArray669[i][0] * f4) + f5;
|
||||
aFloatArrayArray669[i][0] += f4;
|
||||
}
|
||||
if (i == 0) {
|
||||
for (int l = 0; l < anIntArray665[0] * 2; l++) {
|
||||
for (int l = 0; l < (anIntArray665[0] * 2); l++) {
|
||||
aFloatArrayArray669[0][l] *= aFloat671;
|
||||
}
|
||||
}
|
||||
for (int i1 = 0; i1 < anIntArray665[i] * 2; i1++) {
|
||||
for (int i1 = 0; i1 < (anIntArray665[i] * 2); i1++) {
|
||||
anIntArrayArray670[i][i1] = (int) (aFloatArrayArray669[i][i1] * 65536F);
|
||||
}
|
||||
return anIntArray665[i] * 2;
|
||||
@@ -85,7 +85,7 @@ public class SoundFilter {
|
||||
}
|
||||
for (int i1 = 0; i1 < 2; i1++) {
|
||||
for (int j1 = 0; j1 < anIntArray665[i1]; j1++) {
|
||||
if ((j & 1 << i1 * 4 << j1) != 0) {
|
||||
if ((j & (1 << (i1 * 4) << j1)) != 0) {
|
||||
anIntArrayArrayArray666[i1][1][j1] = buffer.method410();
|
||||
anIntArrayArrayArray667[i1][1][j1] = buffer.method410();
|
||||
} else {
|
||||
@@ -94,7 +94,7 @@ public class SoundFilter {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (j != 0 || anIntArray668[1] != anIntArray668[0]) {
|
||||
if ((j != 0) || (anIntArray668[1] != anIntArray668[0])) {
|
||||
envelope.method326(buffer);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -93,20 +93,20 @@ public class SoundTone {
|
||||
int j5 = aEnvelope_100.method328(i);
|
||||
int j6 = aEnvelope_101.method328(i);
|
||||
l2 += method168(j6, j1, aEnvelope_100.anInt540) >> 1;
|
||||
j1 += (j5 * l >> 16) + i1;
|
||||
j1 += ((j5 * l) >> 16) + i1;
|
||||
}
|
||||
if (aEnvelope_102 != null) {
|
||||
int k5 = aEnvelope_102.method328(i);
|
||||
int k6 = aEnvelope_103.method328(i);
|
||||
j4 = j4 * ((method168(k6, i2, aEnvelope_102.anInt540) >> 1) + 32768) >> 15;
|
||||
i2 += (k5 * k1 >> 16) + l1;
|
||||
j4 = (j4 * ((method168(k6, i2, aEnvelope_102.anInt540) >> 1) + 32768)) >> 15;
|
||||
i2 += ((k5 * k1) >> 16) + l1;
|
||||
}
|
||||
for (int l5 = 0; l5 < 5; l5++) {
|
||||
if (anIntArray106[l5] != 0) {
|
||||
int l6 = k2 + anIntArray119[l5];
|
||||
if (l6 < i) {
|
||||
anIntArray115[l6] += method168(j4 * anIntArray120[l5] >> 15, anIntArray118[l5], aEnvelope_98.anInt540);
|
||||
anIntArray118[l5] += (l2 * anIntArray121[l5] >> 16) + anIntArray122[l5];
|
||||
anIntArray115[l6] += method168((j4 * anIntArray120[l5]) >> 15, anIntArray118[l5], aEnvelope_98.anInt540);
|
||||
anIntArray118[l5] += ((l2 * anIntArray121[l5]) >> 16) + anIntArray122[l5];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -121,9 +121,9 @@ public class SoundTone {
|
||||
int i8 = aEnvelope_105.method328(i);
|
||||
int k4;
|
||||
if (flag1) {
|
||||
k4 = aEnvelope_104.anInt538 + ((aEnvelope_104.anInt539 - aEnvelope_104.anInt538) * k7 >> 8);
|
||||
k4 = aEnvelope_104.anInt538 + (((aEnvelope_104.anInt539 - aEnvelope_104.anInt538) * k7) >> 8);
|
||||
} else {
|
||||
k4 = aEnvelope_104.anInt538 + ((aEnvelope_104.anInt539 - aEnvelope_104.anInt538) * i8 >> 8);
|
||||
k4 = aEnvelope_104.anInt538 + (((aEnvelope_104.anInt539 - aEnvelope_104.anInt538) * i8) >> 8);
|
||||
}
|
||||
if ((i3 += 256) >= k4) {
|
||||
i3 = 0;
|
||||
@@ -134,30 +134,30 @@ public class SoundTone {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (anInt109 > 0 && anInt110 > 0) {
|
||||
if ((anInt109 > 0) && (anInt110 > 0)) {
|
||||
int j3 = (int) ((double) anInt109 * d);
|
||||
for (int l4 = j3; l4 < i; l4++) {
|
||||
anIntArray115[l4] += (anIntArray115[l4 - j3] * anInt110) / 100;
|
||||
}
|
||||
}
|
||||
if (aSoundFilter_111.anIntArray665[0] > 0 || aSoundFilter_111.anIntArray665[1] > 0) {
|
||||
if ((aSoundFilter_111.anIntArray665[0] > 0) || (aSoundFilter_111.anIntArray665[1] > 0)) {
|
||||
aEnvelope_112.method327();
|
||||
int k3 = aEnvelope_112.method328(i + 1);
|
||||
int i5 = aSoundFilter_111.method544(0, (float) k3 / 65536F);
|
||||
int i6 = aSoundFilter_111.method544(1, (float) k3 / 65536F);
|
||||
if (i >= i5 + i6) {
|
||||
if (i >= (i5 + i6)) {
|
||||
int j7 = 0;
|
||||
int l7 = i6;
|
||||
if (l7 > i - i5) {
|
||||
if (l7 > (i - i5)) {
|
||||
l7 = i - i5;
|
||||
}
|
||||
for (; j7 < l7; j7++) {
|
||||
int j8 = (int) ((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672 >> 16);
|
||||
int j8 = (int) (((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672) >> 16);
|
||||
for (int k8 = 0; k8 < i5; k8++) {
|
||||
j8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k8] * (long) SoundFilter.anIntArrayArray670[0][k8] >> 16);
|
||||
j8 += (int) (((long) anIntArray115[(j7 + i5) - 1 - k8] * (long) SoundFilter.anIntArrayArray670[0][k8]) >> 16);
|
||||
}
|
||||
for (int j9 = 0; j9 < j7; j9++) {
|
||||
j8 -= (int) ((long) anIntArray115[j7 - 1 - j9] * (long) SoundFilter.anIntArrayArray670[1][j9] >> 16);
|
||||
j8 -= (int) (((long) anIntArray115[j7 - 1 - j9] * (long) SoundFilter.anIntArrayArray670[1][j9]) >> 16);
|
||||
}
|
||||
anIntArray115[j7] = j8;
|
||||
k3 = aEnvelope_112.method328(i + 1);
|
||||
@@ -165,21 +165,21 @@ public class SoundTone {
|
||||
char c = '\200';
|
||||
l7 = c;
|
||||
do {
|
||||
if (l7 > i - i5) {
|
||||
if (l7 > (i - i5)) {
|
||||
l7 = i - i5;
|
||||
}
|
||||
for (; j7 < l7; j7++) {
|
||||
int l8 = (int) ((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672 >> 16);
|
||||
int l8 = (int) (((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672) >> 16);
|
||||
for (int k9 = 0; k9 < i5; k9++) {
|
||||
l8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k9] * (long) SoundFilter.anIntArrayArray670[0][k9] >> 16);
|
||||
l8 += (int) (((long) anIntArray115[(j7 + i5) - 1 - k9] * (long) SoundFilter.anIntArrayArray670[0][k9]) >> 16);
|
||||
}
|
||||
for (int i10 = 0; i10 < i6; i10++) {
|
||||
l8 -= (int) ((long) anIntArray115[j7 - 1 - i10] * (long) SoundFilter.anIntArrayArray670[1][i10] >> 16);
|
||||
l8 -= (int) (((long) anIntArray115[j7 - 1 - i10] * (long) SoundFilter.anIntArrayArray670[1][i10]) >> 16);
|
||||
}
|
||||
anIntArray115[j7] = l8;
|
||||
k3 = aEnvelope_112.method328(i + 1);
|
||||
}
|
||||
if (j7 >= i - i5) {
|
||||
if (j7 >= (i - i5)) {
|
||||
break;
|
||||
}
|
||||
i5 = aSoundFilter_111.method544(0, (float) k3 / 65536F);
|
||||
@@ -189,10 +189,10 @@ public class SoundTone {
|
||||
for (; j7 < i; j7++) {
|
||||
int i9 = 0;
|
||||
for (int l9 = (j7 + i5) - i; l9 < i5; l9++) {
|
||||
i9 += (int) ((long) anIntArray115[(j7 + i5) - 1 - l9] * (long) SoundFilter.anIntArrayArray670[0][l9] >> 16);
|
||||
i9 += (int) (((long) anIntArray115[(j7 + i5) - 1 - l9] * (long) SoundFilter.anIntArrayArray670[0][l9]) >> 16);
|
||||
}
|
||||
for (int j10 = 0; j10 < i6; j10++) {
|
||||
i9 -= (int) ((long) anIntArray115[j7 - 1 - j10] * (long) SoundFilter.anIntArrayArray670[1][j10] >> 16);
|
||||
i9 -= (int) (((long) anIntArray115[j7 - 1 - j10] * (long) SoundFilter.anIntArrayArray670[1][j10]) >> 16);
|
||||
}
|
||||
anIntArray115[j7] = i9;
|
||||
aEnvelope_112.method328(i + 1);
|
||||
@@ -219,13 +219,13 @@ public class SoundTone {
|
||||
}
|
||||
}
|
||||
if (l == 2) {
|
||||
return anIntArray117[k & 0x7fff] * i >> 14;
|
||||
return (anIntArray117[k & 0x7fff] * i) >> 14;
|
||||
}
|
||||
if (l == 3) {
|
||||
return ((k & 0x7fff) * i >> 14) - i;
|
||||
return (((k & 0x7fff) * i) >> 14) - i;
|
||||
}
|
||||
if (l == 4) {
|
||||
return anIntArray116[k / 2607 & 0x7fff] * i;
|
||||
return anIntArray116[(k / 2607) & 0x7fff] * i;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -55,14 +55,14 @@ public class SoundTrack {
|
||||
public int method243() {
|
||||
int j = 0x98967f;
|
||||
for (int k = 0; k < 10; k++) {
|
||||
if (aToneArray329[k] != null && aToneArray329[k].anInt114 / 20 < j) {
|
||||
if ((aToneArray329[k] != null) && ((aToneArray329[k].anInt114 / 20) < j)) {
|
||||
j = aToneArray329[k].anInt114 / 20;
|
||||
}
|
||||
}
|
||||
if (anInt330 < anInt331 && anInt330 / 20 < j) {
|
||||
if ((anInt330 < anInt331) && ((anInt330 / 20) < j)) {
|
||||
j = anInt330 / 20;
|
||||
}
|
||||
if (j == 0x98967f || j == 0) {
|
||||
if ((j == 0x98967f) || (j == 0)) {
|
||||
return 0;
|
||||
}
|
||||
for (int l = 0; l < 10; l++) {
|
||||
@@ -100,7 +100,7 @@ public class SoundTrack {
|
||||
public int method245(int i) {
|
||||
int j = 0;
|
||||
for (int k = 0; k < 10; k++) {
|
||||
if (aToneArray329[k] != null && aToneArray329[k].anInt113 + aToneArray329[k].anInt114 > j) {
|
||||
if ((aToneArray329[k] != null) && ((aToneArray329[k].anInt113 + aToneArray329[k].anInt114) > j)) {
|
||||
j = aToneArray329[k].anInt113 + aToneArray329[k].anInt114;
|
||||
}
|
||||
}
|
||||
@@ -110,11 +110,11 @@ public class SoundTrack {
|
||||
int l = (22050 * j) / 1000;
|
||||
int i1 = (22050 * anInt330) / 1000;
|
||||
int j1 = (22050 * anInt331) / 1000;
|
||||
if (i1 < 0 || j1 < 0 || j1 > l || i1 >= j1) {
|
||||
if ((i1 < 0) || (j1 < 0) || (j1 > l) || (i1 >= j1)) {
|
||||
i = 0;
|
||||
}
|
||||
int k1 = l + (j1 - i1) * (i - 1);
|
||||
for (int l1 = 44; l1 < k1 + 44; l1++) {
|
||||
int k1 = l + ((j1 - i1) * (i - 1));
|
||||
for (int l1 = 44; l1 < (k1 + 44); l1++) {
|
||||
aByteArray327[l1] = -128;
|
||||
}
|
||||
for (int i2 = 0; i2 < 10; i2++) {
|
||||
|
||||
@@ -37,7 +37,7 @@ public class SpotAnimEntity extends Entity {
|
||||
model_1.labelFaces = null;
|
||||
model_1.labelVertices = null;
|
||||
}
|
||||
if (aType_1568.anInt410 != 128 || aType_1568.anInt411 != 128) {
|
||||
if ((aType_1568.anInt410 != 128) || (aType_1568.anInt411 != 128)) {
|
||||
model_1.scale(aType_1568.anInt410, aType_1568.anInt410, aType_1568.anInt411);
|
||||
}
|
||||
if (aType_1568.anInt412 != 0) {
|
||||
@@ -62,7 +62,7 @@ public class SpotAnimEntity extends Entity {
|
||||
for (anInt1570 += i; anInt1570 > aType_1568.aType_407.method258(anInt1569); ) {
|
||||
anInt1570 -= aType_1568.aType_407.method258(anInt1569) + 1;
|
||||
anInt1569++;
|
||||
if (anInt1569 >= aType_1568.aType_407.anInt352 && (anInt1569 < 0 || anInt1569 >= aType_1568.aType_407.anInt352)) {
|
||||
if ((anInt1569 >= aType_1568.aType_407.anInt352) && ((anInt1569 < 0) || (anInt1569 >= aType_1568.aType_407.anInt352))) {
|
||||
anInt1569 = 0;
|
||||
aBoolean1567 = true;
|
||||
}
|
||||
|
||||
@@ -60,9 +60,9 @@ public class SpotAnimType {
|
||||
anInt413 = buffer.method408();
|
||||
} else if (i == 8) {
|
||||
anInt414 = buffer.method408();
|
||||
} else if (i >= 40 && i < 50) {
|
||||
} else if ((i >= 40) && (i < 50)) {
|
||||
anIntArray408[i - 40] = buffer.method410();
|
||||
} else if (i >= 50 && i < 60) {
|
||||
} else if ((i >= 50) && (i < 60)) {
|
||||
anIntArray409[i - 50] = buffer.method410();
|
||||
} else {
|
||||
System.out.println("Error unrecognised spotanim config code: " + i);
|
||||
|
||||
@@ -17,28 +17,28 @@ public class StringUtil {
|
||||
|
||||
public static long getBase37(String s) {
|
||||
long l = 0L;
|
||||
for (int i = 0; i < s.length() && i < 12; i++) {
|
||||
for (int i = 0; (i < s.length()) && (i < 12); i++) {
|
||||
char c = s.charAt(i);
|
||||
l *= 37L;
|
||||
if (c >= 'A' && c <= 'Z') {
|
||||
if ((c >= 'A') && (c <= 'Z')) {
|
||||
l += (1 + c) - 'A';
|
||||
} else if (c >= 'a' && c <= 'z') {
|
||||
} else if ((c >= 'a') && (c <= 'z')) {
|
||||
l += (1 + c) - 'a';
|
||||
} else if (c >= '0' && c <= '9') {
|
||||
} else if ((c >= '0') && (c <= '9')) {
|
||||
l += (27 + c) - '0';
|
||||
}
|
||||
}
|
||||
while (l % 37L == 0L && l != 0L) {
|
||||
while (((l % 37L) == 0L) && (l != 0L)) {
|
||||
l /= 37L;
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
public static String fromBase37(long value) {
|
||||
if (value <= 0L || value >= 0x5b5b57f8a98a5dd1L/*37^12*/) {
|
||||
if ((value <= 0L) || (value >= 0x5b5b57f8a98a5dd1L)/*37^12*/) {
|
||||
return "invalid_name";
|
||||
}
|
||||
if (value % 37L == 0L) {
|
||||
if ((value % 37L) == 0L) {
|
||||
return "invalid_name";
|
||||
}
|
||||
int len = 0;
|
||||
@@ -46,23 +46,23 @@ public class StringUtil {
|
||||
while (value != 0L) {
|
||||
long last = value;
|
||||
value /= 37L;
|
||||
tmp[11 - len++] = BASE37_TABLE[(int) (last - value * 37L)];
|
||||
tmp[11 - len++] = BASE37_TABLE[(int) (last - (value * 37L))];
|
||||
}
|
||||
return new String(tmp, 12 - len, len);
|
||||
}
|
||||
|
||||
public static long hashCode(String s) {
|
||||
s = s.toUpperCase();
|
||||
long l = 0L;
|
||||
long hash = 0L;
|
||||
for (int i = 0; i < s.length(); i++) {
|
||||
l = (l * 61L + (long) s.charAt(i)) - 32L;
|
||||
l = l + (l >> 56) & 0xffffffffffffffL;
|
||||
hash = ((hash * 61L) + (long) s.charAt(i)) - 32L;
|
||||
hash = (hash + (hash >> 56)) & 0xffffffffffffffL;
|
||||
}
|
||||
return l;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static String formatIPv4(int ipv4) {
|
||||
return String.format("%d.%d.%d.%d", ipv4 >> 24 & 0xff, ipv4 >> 16 & 0xff, ipv4 >> 8 & 0xff, ipv4 & 0xff);
|
||||
return String.format("%d.%d.%d.%d", (ipv4 >> 24) & 0xff, (ipv4 >> 16) & 0xff, (ipv4 >> 8) & 0xff, ipv4 & 0xff);
|
||||
}
|
||||
|
||||
public static String method587(String s) {
|
||||
@@ -71,12 +71,12 @@ public class StringUtil {
|
||||
for (int j = 0; j < ac.length; j++) {
|
||||
if (ac[j] == '_') {
|
||||
ac[j] = ' ';
|
||||
if (j + 1 < ac.length && ac[j + 1] >= 'a' && ac[j + 1] <= 'z') {
|
||||
if (((j + 1) < ac.length) && (ac[j + 1] >= 'a') && (ac[j + 1] <= 'z')) {
|
||||
ac[j + 1] = (char) ((ac[j + 1] + 'A') - 'a');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ac[0] >= 'a' && ac[0] <= 'z') {
|
||||
if ((ac[0] >= 'a') && (ac[0] <= 'z')) {
|
||||
ac[0] = (char) ((ac[0] + 'A') - 'a');
|
||||
}
|
||||
return new String(ac);
|
||||
|
||||
Reference in new issue
Block a user