Missed a convention

This commit is contained in:
thedaneeffect committed 2021-03-10 05:14:50 -05:00
1 parent d259dcf195
commit f1bf79bc6a
4 files changed
+32 -32

No files matched your search

+17 -17
View File
@@ -6385,7 +6385,7 @@ public class Game extends GameShell {
}
if ((l & 8) != 0) {
int j1 = packet.get1UA();
int j2 = packet.getU1C();
int j2 = packet.get1UC();
npc.method447(j2, j1, anInt1161);
npc.anInt1532 = anInt1161 + 300;
npc.anInt1533 = packet.get1UA();
@@ -6416,12 +6416,12 @@ public class Game extends GameShell {
npc.anInt1535 = 100;
}
if ((l & 0x40) != 0) {
int l1 = packet.getU1C();
int l1 = packet.get1UC();
int k2 = packet.get1US();
npc.method447(k2, l1, anInt1161);
npc.anInt1532 = anInt1161 + 300;
npc.anInt1533 = packet.get1US();
npc.anInt1534 = packet.getU1C();
npc.anInt1534 = packet.get1UC();
}
if ((l & 2) != 0) {
npc.aType_1696 = NPCType.method159(packet.get2ULEA());
@@ -7779,7 +7779,7 @@ public class Game extends GameShell {
if (l == 65535) {
l = -1;
}
int i2 = packet.getU1C();
int i2 = packet.get1UC();
if ((l == player.anInt1526) && (l != -1)) {
int i3 = SeqType.aTypeArray351[l].anInt365;
if (i3 == 1) {
@@ -7815,7 +7815,7 @@ public class Game extends GameShell {
if ((i & 0x80) != 0) {
int i1 = packet.get2ULE();
int j2 = packet.get1U();
int j3 = packet.getU1C();
int j3 = packet.get1UC();
int k3 = packet.position;
if ((player.aString1703 != null) && player.aBoolean1710) {
long l3 = StringUtil.toBase37(player.aString1703);
@@ -7861,7 +7861,7 @@ public class Game extends GameShell {
}
}
if ((i & 0x10) != 0) {
int j1 = packet.getU1C();
int j1 = packet.get1UC();
byte[] abyte0 = new byte[j1];
Packet packet_1 = new Packet(abyte0);
packet.get(abyte0, 0, j1);
@@ -7877,7 +7877,7 @@ public class Game extends GameShell {
int k2 = packet.get1UA();
player.method447(k2, k1, anInt1161);
player.anInt1532 = anInt1161 + 300;
player.anInt1533 = packet.getU1C();
player.anInt1533 = packet.get1UC();
player.anInt1534 = packet.get1U();
}
if ((i & 0x200) != 0) {
@@ -7886,7 +7886,7 @@ public class Game extends GameShell {
player.method447(l2, l1, anInt1161);
player.anInt1532 = anInt1161 + 300;
player.anInt1533 = packet.get1U();
player.anInt1534 = packet.getU1C();
player.anInt1534 = packet.get1UC();
}
}
@@ -9275,7 +9275,7 @@ public class Game extends GameShell {
return;
}
if (j == 101) {
int l2 = packet.getU1C();
int l2 = packet.get1UC();
int k5 = l2 >> 2;
int j8 = l2 & 3;
int i11 = anIntArray1177[k5];
@@ -9651,7 +9651,7 @@ public class Game extends GameShell {
return true;
}
if (anInt1008 == 176) {
anInt1167 = aPacket_1083.getU1C();
anInt1167 = aPacket_1083.get1UC();
anInt1154 = aPacket_1083.get2UA();
anInt1120 = aPacket_1083.get1U();
anInt1193 = aPacket_1083.get4ME();
@@ -9677,7 +9677,7 @@ public class Game extends GameShell {
return true;
}
if (anInt1008 == 64) {
anInt1268 = aPacket_1083.getU1C();
anInt1268 = aPacket_1083.get1UC();
anInt1269 = aPacket_1083.get1US();
for (int j = anInt1268; j < (anInt1268 + 8); j++) {
for (int l9 = anInt1269; l9 < (anInt1269 + 8); l9++) {
@@ -10038,7 +10038,7 @@ public class Game extends GameShell {
}
if (anInt1008 == 60) {
anInt1269 = aPacket_1083.get1U();
anInt1268 = aPacket_1083.getU1C();
anInt1268 = aPacket_1083.get1UC();
while (aPacket_1083.position < anInt1007) {
int k3 = aPacket_1083.get1U();
method137(aPacket_1083, k3);
@@ -10073,7 +10073,7 @@ public class Game extends GameShell {
return true;
}
if (anInt1008 == 104) {
int j4 = aPacket_1083.getU1C();
int j4 = aPacket_1083.get1UC();
int i12 = aPacket_1083.get1UA();
String s6 = aPacket_1083.getString();
if ((j4 >= 1) && (j4 <= 5)) {
@@ -10340,8 +10340,8 @@ public class Game extends GameShell {
return true;
}
if (anInt1008 == 85) {
anInt1269 = aPacket_1083.getU1C();
anInt1268 = aPacket_1083.getU1C();
anInt1269 = aPacket_1083.get1UC();
anInt1268 = aPacket_1083.get1UC();
anInt1008 = -1;
return true;
}
@@ -10640,7 +10640,7 @@ public class Game extends GameShell {
int i9 = aPacket_1083.get2U();
Component component_2 = Component.aComponentArray210[i9];
while (aPacket_1083.position < anInt1007) {
int j20 = aPacket_1083.getUSmart();
int j20 = aPacket_1083.getSmartU();
int i23 = aPacket_1083.get2U();
int l25 = aPacket_1083.get1U();
if (l25 == 255) {
@@ -10660,7 +10660,7 @@ public class Game extends GameShell {
return true;
}
if (anInt1008 == 106) {
anInt1221 = aPacket_1083.getU1C();
anInt1221 = aPacket_1083.get1UC();
aBoolean1153 = true;
aBoolean1103 = true;
anInt1008 = -1;
+2 -2
View File
@@ -193,7 +193,7 @@ public class Packet extends DoublyLinkedListNode {
return (data[position++] - 128) & 0xff;
}
public int getU1C() {
public int get1UC() {
return -data[position++] & 0xff;
}
@@ -220,7 +220,7 @@ public class Packet extends DoublyLinkedListNode {
*
* @return the value.
*/
public int getUSmart() {
public int getSmartU() {
int i = data[position] & 0xff;
if (i < 0x80) {
return get1U();
+9 -9
View File
@@ -71,7 +71,7 @@ public class SceneBuilder {
public static void method173(Packet packet, OnDemand onDemand) {
int i_110_ = -1;
for (; ; ) {
int i_111_ = packet.getUSmart();
int i_111_ = packet.getSmartU();
if (i_111_ == 0) {
break;
}
@@ -79,7 +79,7 @@ public class SceneBuilder {
LocType type = LocType.method572(i_110_);
type.method574(onDemand);
for (; ; ) {
int i_112_ = packet.getUSmart();
int i_112_ = packet.getSmartU();
if (i_112_ == 0) {
break;
}
@@ -334,7 +334,7 @@ public class SceneBuilder {
Packet packet = new Packet(is);
int i_252_ = -1;
for (; ; ) {
int i_253_ = packet.getUSmart();
int i_253_ = packet.getSmartU();
if (i_253_ == 0) {
break;
}
@@ -343,13 +343,13 @@ public class SceneBuilder {
boolean bool_255_ = false;
for (; ; ) {
if (bool_255_) {
int i_256_ = packet.getUSmart();
int i_256_ = packet.getSmartU();
if (i_256_ == 0) {
break;
}
packet.get1U();
} else {
int i_257_ = packet.getUSmart();
int i_257_ = packet.getSmartU();
if (i_257_ == 0) {
break;
}
@@ -1167,14 +1167,14 @@ public class SceneBuilder {
Packet packet = new Packet(is);
int i_203_ = -1;
for (; ; ) {
int i_204_ = packet.getUSmart();
int i_204_ = packet.getSmartU();
if (i_204_ == 0) {
break;
}
i_203_ += i_204_;
int i_205_ = 0;
for (; ; ) {
int i_206_ = packet.getUSmart();
int i_206_ = packet.getSmartU();
if (i_206_ == 0) {
break;
}
@@ -1231,14 +1231,14 @@ public class SceneBuilder {
Packet packet = new Packet(is);
int i_265_ = -1;
for (; ; ) {
int i_266_ = packet.getUSmart();
int i_266_ = packet.getSmartU();
if (i_266_ == 0) {
break;
}
i_265_ += i_266_;
int i_267_ = 0;
for (; ; ) {
int i_268_ = packet.getUSmart();
int i_268_ = packet.getSmartU();
if (i_268_ == 0) {
break;
}
+4 -4
View File
@@ -261,16 +261,16 @@ public class SoundTone {
aEnvelope_105.method325(packet);
}
for (int j = 0; j < 10; j++) {
int k = packet.getUSmart();
int k = packet.getSmartU();
if (k == 0) {
break;
}
anIntArray106[j] = k;
anIntArray107[j] = packet.getSmart();
anIntArray108[j] = packet.getUSmart();
anIntArray108[j] = packet.getSmartU();
}
anInt109 = packet.getUSmart();
anInt110 = packet.getUSmart();
anInt109 = packet.getSmartU();
anInt110 = packet.getSmartU();
anInt113 = packet.get2U();
anInt114 = packet.get2U();
aSoundFilter_111 = new SoundFilter();