project: Rev 202
This commit is contained in:
@@ -51,7 +51,7 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
int regionEndY;
|
||||
|
||||
WorldMapSection1() {
|
||||
} // L: 14
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
@@ -60,23 +60,23 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("expandBounds")
|
||||
public void expandBounds(WorldMapArea var1) {
|
||||
if (var1.regionLowX > this.regionEndX) { // L: 18
|
||||
if (var1.regionLowX > this.regionEndX) {
|
||||
var1.regionLowX = this.regionEndX;
|
||||
}
|
||||
|
||||
if (var1.regionHighX < this.regionEndX) {
|
||||
var1.regionHighX = this.regionEndX; // L: 19
|
||||
var1.regionHighX = this.regionEndX;
|
||||
}
|
||||
|
||||
if (var1.regionLowY > this.regionEndY) { // L: 20
|
||||
if (var1.regionLowY > this.regionEndY) {
|
||||
var1.regionLowY = this.regionEndY;
|
||||
}
|
||||
|
||||
if (var1.regionHighY < this.regionEndY) { // L: 21
|
||||
if (var1.regionHighY < this.regionEndY) {
|
||||
var1.regionHighY = this.regionEndY;
|
||||
}
|
||||
|
||||
} // L: 22
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
@@ -85,10 +85,10 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("containsCoord")
|
||||
public boolean containsCoord(int var1, int var2, int var3) {
|
||||
if (var1 >= this.minPlane && var1 < this.planes + this.minPlane) { // L: 26
|
||||
return var2 >> 6 == this.regionStartX && var3 >> 6 == this.regionStartY; // L: 29
|
||||
if (var1 >= this.minPlane && var1 < this.planes + this.minPlane) {
|
||||
return var2 >> 6 == this.regionStartX && var3 >> 6 == this.regionStartY;
|
||||
} else {
|
||||
return false; // L: 27
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("containsPosition")
|
||||
public boolean containsPosition(int var1, int var2) {
|
||||
return var1 >> 6 == this.regionEndX && var2 >> 6 == this.regionEndY; // L: 34
|
||||
return var1 >> 6 == this.regionEndX && var2 >> 6 == this.regionEndY;
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@@ -109,11 +109,11 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("getBorderTileLengths")
|
||||
public int[] getBorderTileLengths(int var1, int var2, int var3) {
|
||||
if (!this.containsCoord(var1, var2, var3)) { // L: 39
|
||||
return null; // L: 40
|
||||
if (!this.containsCoord(var1, var2, var3)) {
|
||||
return null;
|
||||
} else {
|
||||
int[] var4 = new int[]{var2 + (this.regionEndX * 64 - this.regionStartX * 64), var3 + (this.regionEndY * 64 - this.regionStartY * 64)}; // L: 42 43 44
|
||||
return var4; // L: 45
|
||||
int[] var4 = new int[]{var2 + (this.regionEndX * 64 - this.regionStartX * 64), var3 + (this.regionEndY * 64 - this.regionStartY * 64)};
|
||||
return var4;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,12 +124,12 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("coord")
|
||||
public Coord coord(int var1, int var2) {
|
||||
if (!this.containsPosition(var1, var2)) { // L: 50
|
||||
return null; // L: 51
|
||||
if (!this.containsPosition(var1, var2)) {
|
||||
return null;
|
||||
} else {
|
||||
int var3 = this.regionStartX * 64 - this.regionEndX * 64 + var1; // L: 53
|
||||
int var4 = var2 + (this.regionStartY * 64 - this.regionEndY * 64); // L: 54
|
||||
return new Coord(this.minPlane, var3, var4); // L: 55
|
||||
int var3 = this.regionStartX * 64 - this.regionEndX * 64 + var1;
|
||||
int var4 = var2 + (this.regionStartY * 64 - this.regionEndY * 64);
|
||||
return new Coord(this.minPlane, var3, var4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,14 +140,14 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("read")
|
||||
public void read(Buffer var1) {
|
||||
this.minPlane = var1.readUnsignedByte(); // L: 60
|
||||
this.planes = var1.readUnsignedByte(); // L: 61
|
||||
this.regionStartX = var1.readUnsignedShort(); // L: 62
|
||||
this.regionStartY = var1.readUnsignedShort(); // L: 63
|
||||
this.regionEndX = var1.readUnsignedShort(); // L: 64
|
||||
this.regionEndY = var1.readUnsignedShort(); // L: 65
|
||||
this.postRead(); // L: 66
|
||||
} // L: 67
|
||||
this.minPlane = var1.readUnsignedByte();
|
||||
this.planes = var1.readUnsignedByte();
|
||||
this.regionStartX = var1.readUnsignedShort();
|
||||
this.regionStartY = var1.readUnsignedShort();
|
||||
this.regionEndX = var1.readUnsignedShort();
|
||||
this.regionEndY = var1.readUnsignedShort();
|
||||
this.postRead();
|
||||
}
|
||||
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
@@ -156,7 +156,7 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
)
|
||||
@Export("postRead")
|
||||
void postRead() {
|
||||
} // L: 69
|
||||
}
|
||||
|
||||
@ObfuscatedName("kb")
|
||||
@ObfuscatedSignature(
|
||||
@@ -164,21 +164,21 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
garbageValue = "349431240"
|
||||
)
|
||||
static final void method4831() {
|
||||
for (int var0 = 0; var0 < Players.Players_count; ++var0) { // L: 12447
|
||||
Player var1 = Client.players[Players.Players_indices[var0]]; // L: 12448
|
||||
var1.clearIsFriend(); // L: 12449
|
||||
for (int var0 = 0; var0 < Players.Players_count; ++var0) {
|
||||
Player var1 = Client.players[Players.Players_indices[var0]];
|
||||
var1.clearIsFriend();
|
||||
}
|
||||
|
||||
Iterator var2 = Messages.Messages_hashTable.iterator(); // L: 12452
|
||||
Iterator var2 = Messages.Messages_hashTable.iterator();
|
||||
|
||||
while (var2.hasNext()) {
|
||||
Message var3 = (Message)var2.next(); // L: 12453
|
||||
var3.clearIsFromFriend(); // L: 12455
|
||||
Message var3 = (Message)var2.next();
|
||||
var3.clearIsFromFriend();
|
||||
}
|
||||
|
||||
if (Players.friendsChat != null) { // L: 12459
|
||||
Players.friendsChat.clearFriends(); // L: 12460
|
||||
if (Players.friendsChat != null) {
|
||||
Players.friendsChat.clearFriends();
|
||||
}
|
||||
|
||||
} // L: 12462
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user