This commit is contained in:
thedaneeffect committed 2023-01-02 18:56:33 -05:00
1 parent a4a81657f5
commit a3f2c83550
14 files changed
+2509 -2360

No files matched your search

+2 -2
View File
@@ -37,12 +37,12 @@ public class BitmapFont {
if (storeOrder == 0) {
for (int i = 0; i < len; i++) {
charMask[c][i] = dat.read8();
charMask[c][i] = dat.read();
}
} else if (storeOrder == 1) {
for (int x = 0; x < w; x++) {
for (int y = 0; y < h; y++) {
charMask[c][x + (y * w)] = dat.read8();
charMask[c][x + (y * w)] = dat.read();
}
}
}
+10 -10
View File
@@ -130,26 +130,26 @@ public class Buffer extends DoublyLinkedList.Node {
}
public void writeString(String s) {
writeBytes(s.getBytes(StandardCharsets.ISO_8859_1));
write(s.getBytes(StandardCharsets.ISO_8859_1));
write8('\n');
}
public void writeBytes(byte[] src, int off, int len) {
public void write(byte[] src, int off, int len) {
System.arraycopy(src, off, data, position, len);
position += len;
}
public void writeBytes(byte[] src) {
writeBytes(src, 0, src.length);
public void write(byte[] src) {
write(src, 0, src.length);
}
public void writeBytesA(byte[] src, int off, int len) {
public void writeA(byte[] src, int off, int len) {
for (int i = (off + len) - 1; i >= off; i--) {
data[position++] = (byte) (src[i] + 128);
}
}
public byte read8() {
public byte read() {
return data[position++];
}
@@ -296,12 +296,12 @@ public class Buffer extends DoublyLinkedList.Node {
return raw;
}
public void readBytes(byte[] dst, int off, int len) {
public void read(byte[] dst, int off, int len) {
System.arraycopy(data, position, dst, off, len);
position += len;
}
public void getBytesReversed(byte[] dst, int off, int len) {
public void readReversed(byte[] dst, int off, int len) {
for (int i = (off + len) - 1; i >= off; i--) {
dst[i] = data[position++];
}
@@ -336,11 +336,11 @@ public class Buffer extends DoublyLinkedList.Node {
int length = position;
position = 0;
byte[] raw = new byte[length];
readBytes(raw, 0, length);
read(raw, 0, length);
byte[] encrypted = new BigInteger(raw).modPow(exponent, modulus).toByteArray();
position = 0;
write8(encrypted.length);
writeBytes(encrypted, 0, encrypted.length);
write(encrypted, 0, encrypted.length);
}
}
+30 -30
View File
@@ -21,7 +21,7 @@ public class Game extends GameShell {
public static final int[][] designPartColor = {{6798, 107, 10283, 16, 4797, 7744, 5799, 4634, 33697, 22433, 2983, 54193}, {8741, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003, 25239}, {25238, 8742, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003}, {4626, 11146, 6439, 12, 4758, 10270}, {4550, 4537, 5681, 5673, 5790, 6806, 8076, 4574}};
public static final int[] designHairColor = {9104, 10275, 7595, 3610, 7975, 8526, 918, 38802, 24466, 10145, 58654, 5027, 1457, 16565, 34991, 25486};
public static final BigInteger RSA_MODULUS = new BigInteger("115021795079507343952614936197913546438580135096169635842480712252120509788529535203161526625251797553017433341968661761641695154871087245548928967487006467485383337651405009623296611208539069524887502151216922299338355736930449024798579974392565651281911869750633089962840628929607415810272098208925607905239");
public static final BigInteger RSA_MODULUS = new BigInteger("150437374157649496260907284144944613391868328356428312785170855566836496148649769873303054925785940753587048471819630374797613652942136320599534564023031743563833250113572385619350489566973866283982326500382760586083379242813677444239924493338426453599564333273724064297982529208425077775100347146662074078333");
public static final int[] levelExperience;
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
public static final String VALID_CHAT_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\243$%^&*()-_=+[{]};:'@#~,<.>/?\\| ";
@@ -737,7 +737,7 @@ public class Game extends GameShell {
Model.init(ondemand.getFileCount(0), ondemand);
if (!lowmem) {
music = 0;
music = 7;
try {
music = Integer.parseInt(getParameter("music"));
@@ -1537,7 +1537,7 @@ public class Game extends GameShell {
Draw2D.drawLineX(0, 77, 479, 0);
}
static String server = "lucas.xenorune.com";
static String server = "0.0.0.0";
public Socket openSocket(int port) throws IOException {
return new Socket(InetAddress.getByName(server), port);
@@ -1937,38 +1937,38 @@ public class Game extends GameShell {
int k = -99999999;
ObjStackEntity stack0 = null;
ObjStackEntity stack1 = null;
ObjStackEntity stack2 = null;
ObjEntity obj0 = null;
ObjEntity obj1 = null;
ObjEntity obj2 = null;
for (ObjStackEntity stack = (ObjStackEntity) list.peekFront(); stack != null; stack = (ObjStackEntity) list.prev()) {
ObjType type = ObjType.get(stack.id);
for (ObjEntity obj = (ObjEntity) list.peekFront(); obj != null; obj = (ObjEntity) list.prev()) {
ObjType type = ObjType.get(obj.id);
int l = type.cost;
if (type.stackable) {
l *= stack.amount + 1;
l *= obj.amount + 1;
}
if (l > k) {
k = l;
stack0 = stack;
obj0 = obj;
}
}
list.pushFront(stack0);
list.pushFront(obj0);
for (ObjStackEntity stack = (ObjStackEntity) list.peekFront(); stack != null; stack = (ObjStackEntity) list.prev()) {
if ((stack.id != stack0.id) && (stack1 == null)) {
stack1 = stack;
for (ObjEntity obj = (ObjEntity) list.peekFront(); obj != null; obj = (ObjEntity) list.prev()) {
if ((obj.id != obj0.id) && (obj1 == null)) {
obj1 = obj;
}
if ((stack.id != stack0.id) && (stack.id != stack1.id) && (stack2 == null)) {
stack2 = stack;
if ((obj.id != obj0.id) && (obj.id != obj1.id) && (obj2 == null)) {
obj2 = obj;
}
}
int bitset = x + (z << 7) + 0x60000000;
scene.addObjStack(stack0, stack1, stack2, currentLevel, x, z, getHeightmapY(currentLevel, (x * 128) + 64, (z * 128) + 64), bitset);
scene.addObjStack(obj0, obj1, obj2, currentLevel, x, z, getHeightmapY(currentLevel, (x * 128) + 64, (z * 128) + 64), bitset);
}
public void appendNPCs(boolean flag) {
@@ -5335,7 +5335,7 @@ public class Game extends GameShell {
if (k1 == 3) {
DoublyLinkedList list = levelObjStacks[currentLevel][i1][j1];
if (list != null) {
for (ObjStackEntity objStack = (ObjStackEntity) list.peekBack(); objStack != null; objStack = (ObjStackEntity) list.next()) {
for (ObjEntity objStack = (ObjEntity) list.peekBack(); objStack != null; objStack = (ObjEntity) list.next()) {
ObjType type = ObjType.get(objStack.id);
if (anInt1282 == 1) {
menuOption[menuSize] = "Use " + aString1286 + " with @lre@" + type.name;
@@ -5629,7 +5629,7 @@ public class Game extends GameShell {
out.write8S(j2);
chatBuffer.position = 0;
ChatCompression.pack(chatTyped, chatBuffer);
out.writeBytesA(chatBuffer.data, 0, chatBuffer.position);
out.writeA(chatBuffer.data, 0, chatBuffer.position);
out.writeSize(out.position - j3);
chatTyped = ChatCompression.method527(chatTyped);
chatTyped = Censor.apply(chatTyped);
@@ -6406,7 +6406,7 @@ public class Game extends GameShell {
for (int l1 = 0; l1 < 9; l1++) {
login.write32(archiveChecksum[l1]);
}
login.writeBytes(out.data, 0, out.position);
login.write(out.data, 0, out.position);
out.random = new ISAACRandom(seed);
for (int j2 = 0; j2 < 4; j2++) {
seed[j2] += 50;
@@ -8515,7 +8515,7 @@ public class Game extends GameShell {
if (!ignore && (overrideChat == 0)) {
try {
chatBuffer.position = 0;
buffer.getBytesReversed(chatBuffer.data, 0, length);
buffer.readReversed(chatBuffer.data, 0, length);
chatBuffer.position = 0;
String chat = ChatCompression.unpack(length, chatBuffer);
@@ -8551,7 +8551,7 @@ public class Game extends GameShell {
int j1 = buffer.read8UC();
byte[] abyte0 = new byte[j1];
Buffer buffer_1 = new Buffer(abyte0);
buffer.readBytes(abyte0, 0, j1);
buffer.read(abyte0, 0, j1);
aBufferArray895[j] = buffer_1;
player.method451(buffer_1);
}
@@ -9843,7 +9843,7 @@ public class Game extends GameShell {
if ((x >= 0) && (z >= 0) && (x < 104) && (z < 104)) {
DoublyLinkedList stacks = levelObjStacks[currentLevel][x][z];
if (stacks != null) {
for (ObjStackEntity stack = (ObjStackEntity) stacks.peekFront(); stack != null; stack = (ObjStackEntity) stacks.prev()) {
for (ObjEntity stack = (ObjEntity) stacks.peekFront(); stack != null; stack = (ObjEntity) stacks.prev()) {
if ((stack.id != (objID & 0x7fff)) || (stack.amount != objAmount)) {
continue;
}
@@ -9882,7 +9882,7 @@ public class Game extends GameShell {
int ownerPID = buffer.read16UA();
int objAmount = buffer.read16U();
if ((x >= 0) && (z >= 0) && (x < 104) && (z < 104) && (ownerPID != localPID)) {
ObjStackEntity obj = new ObjStackEntity();
ObjEntity obj = new ObjEntity();
obj.id = objID;
obj.amount = objAmount;
if (levelObjStacks[currentLevel][x][z] == null) {
@@ -9903,7 +9903,7 @@ public class Game extends GameShell {
if ((x >= 0) && (z >= 0) && (x < 104) && (z < 104)) {
DoublyLinkedList list = levelObjStacks[currentLevel][x][z];
if (list != null) {
for (ObjStackEntity obj = (ObjStackEntity) list.peekFront(); obj != null; obj = (ObjStackEntity) list.prev()) {
for (ObjEntity obj = (ObjEntity) list.peekFront(); obj != null; obj = (ObjEntity) list.prev()) {
if (obj.id != (objID & 0x7fff)) {
continue;
}
@@ -9998,7 +9998,7 @@ public class Game extends GameShell {
int kind = info >> 2;
int rotation = info & 3;
int classID = LOC_KIND_TO_CLASS_ID[kind];
byte minX = buffer.read8();
byte minX = buffer.read();
int locID = buffer.read16U();
byte minZ = buffer.read8C();
PlayerEntity player;
@@ -10098,7 +10098,7 @@ public class Game extends GameShell {
int x = baseX + ((pos >> 4) & 7);
int z = baseZ + (pos & 7);
if ((x >= 0) && (z >= 0) && (x < 104) && (z < 104)) {
ObjStackEntity stack = new ObjStackEntity();
ObjEntity stack = new ObjEntity();
stack.id = id;
stack.amount = amount;
if (levelObjStacks[currentLevel][x][z] == null) {
@@ -10130,8 +10130,8 @@ public class Game extends GameShell {
int pos = buffer.read8U();
int srcX = baseX + ((pos >> 4) & 7);
int srcZ = baseZ + (pos & 7);
int dstX = srcX + buffer.read8();
int dstZ = srcZ + buffer.read8();
int dstX = srcX + buffer.read();
int dstZ = srcZ + buffer.read();
int targetID = buffer.read16();
int spotanimID = buffer.read16U();
int srcY = buffer.read8U() * 4;
@@ -11579,7 +11579,7 @@ public class Game extends GameShell {
}
if (ptype == 36) {
int k8 = in.read16ULE();
byte byte0 = in.read8();
byte byte0 = in.read();
anIntArray1045[k8] = byte0;
if (variables[k8] != byte0) {
variables[k8] = byte0;
+2 -2
View File
@@ -37,7 +37,7 @@ public class Image8 {
if (pixelOrder == 0) {
for (int i = 0; i < pixelCount; i++) {
pixels[i] = dat.read8();
pixels[i] = dat.read();
}
return;
}
@@ -45,7 +45,7 @@ public class Image8 {
if (pixelOrder == 1) {
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
pixels[x + (y * width)] = dat.read8();
pixels[x + (y * width)] = dat.read();
}
}
}
+2 -2
View File
@@ -447,9 +447,9 @@ public class LocType {
} else if (j == 28) {
decorationPadding = buffer.read8U();
} else if (j == 29) {
lightAmbient = buffer.read8();
lightAmbient = buffer.read();
} else if (j == 39) {
lightAttenuation = buffer.read8();
lightAttenuation = buffer.read();
} else if ((j >= 30) && (j < 39)) {
if (actions == null) {
actions = new String[5];
+3 -3
View File
@@ -246,7 +246,7 @@ public class NPCType {
} else if (i == 3) {
desc = buffer.readStringRaw();
} else if (i == 12) {
size = buffer.read8();
size = buffer.read();
} else if (i == 13) {
seqStandID = buffer.read16U();
} else if (i == 14) {
@@ -295,9 +295,9 @@ public class NPCType {
} else if (i == 99) {
aBoolean93 = true;
} else if (i == 100) {
anInt85 = buffer.read8();
anInt85 = buffer.read();
} else if (i == 101) {
anInt92 = buffer.read8() * 5;
anInt92 = buffer.read() * 5;
} else if (i == 102) {
headicon = buffer.read16U();
} else if (i == 103) {
@@ -2,12 +2,12 @@
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
public class ObjStackEntity extends Entity {
public class ObjEntity extends Entity {
public int id;
public int amount;
public ObjStackEntity() {
public ObjEntity() {
}
@Override
+4 -4
View File
@@ -544,12 +544,12 @@ public class ObjType {
members = true;
} else if (i == 23) {
maleModelId0 = buffer.read16U();
maleOffsetY = buffer.read8();
maleOffsetY = buffer.read();
} else if (i == 24) {
maleModelId1 = buffer.read16U();
} else if (i == 25) {
femaleModelId0 = buffer.read16U();
femaleOffsetY = buffer.read8();
femaleOffsetY = buffer.read();
} else if (i == 26) {
femaleModelId1 = buffer.read16U();
} else if ((i >= 30) && (i < 35)) {
@@ -605,9 +605,9 @@ public class ObjType {
} else if (i == 112) {
scaleY = buffer.read16U();
} else if (i == 113) {
lightAmbient = buffer.read8();
lightAmbient = buffer.read();
} else if (i == 114) {
lightAttenuation = buffer.read8() * 5;
lightAttenuation = buffer.read() * 5;
} else if (i == 115) {
team = buffer.read8U();
}
+2419 -2273
View File
File diff suppressed because it is too large. Load diff
+21 -22
View File
@@ -5,9 +5,7 @@
public class SceneBuilder {
public static final int[] anIntArray137 = {1, 0, -1, 0};
public static final int[] WALL_ROTATION_OCCLUDE_TYPE_1 = {16, 32, 64, 128};
public static final int[] anIntArray144 = {0, -1, 0, 1};
public static final int[] WALL_ROTATION_OCCLUDE_TYPE = {1, 2, 4, 8};
public static int randomHueOffset = (int) (Math.random() * 17.0) - 8;
public static int anInt131;
public static int randomLightnessOffset = (int) (Math.random() * 33.0) - 16;
@@ -194,7 +192,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, rotation, 0, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
scene.setWall(Scene.ROTATION_WALL_TYPE[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
if (loc.solid) {
collision.addWall(z, rotation, x, kind, loc.blocksProjectiles);
@@ -208,7 +206,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, rotation, 1, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE_1[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
scene.setWall(Scene.ROTATION_WALL_CORNER_TYPE[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
if (loc.solid) {
collision.addWall(z, rotation, x, kind, loc.blocksProjectiles);
@@ -226,7 +224,7 @@ public class SceneBuilder {
locB = new LocEntity(locID, nextRotation, 2, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE[rotation], locA, WALL_ROTATION_OCCLUDE_TYPE[nextRotation], locB, dataLevel, x, z, y, bitset, info);
scene.setWall(Scene.ROTATION_WALL_TYPE[rotation], locA, Scene.ROTATION_WALL_TYPE[nextRotation], locB, dataLevel, x, z, y, bitset, info);
if (loc.solid) {
collision.addWall(z, rotation, x, kind, loc.blocksProjectiles);
@@ -240,7 +238,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, rotation, 3, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE_1[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
scene.setWall(Scene.ROTATION_WALL_CORNER_TYPE[rotation], entity, 0, null, dataLevel, x, z, y, bitset, info);
if (loc.solid) {
collision.addWall(z, rotation, x, kind, loc.blocksProjectiles);
@@ -292,7 +290,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, 0, 4, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWallDecoration(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, dataLevel, x, z, y, rotation * 512, 0, 0, bitset, info);
scene.setWallDecoration(Scene.ROTATION_WALL_TYPE[rotation], entity, dataLevel, x, z, y, rotation * 512, 0, 0, bitset, info);
} else if (kind == 5) {
int padding = 16;
int wallBitset = scene.getWallBitset(dataLevel, x, z);
@@ -309,7 +307,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, 0, 4, heightSE, heightNE, heightSW, heightNW, loc.seqID, true);
}
scene.setWallDecoration(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, dataLevel, x, z, y, rotation * 512, anIntArray137[rotation] * padding, anIntArray144[rotation] * padding, bitset, info);
scene.setWallDecoration(Scene.ROTATION_WALL_TYPE[rotation], entity, dataLevel, x, z, y, rotation * 512, anIntArray137[rotation] * padding, anIntArray144[rotation] * padding, bitset, info);
} else if (kind == 6) {
Entity entity;
@@ -1016,7 +1014,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, rotation, 0, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
scene.setWall(Scene.ROTATION_WALL_TYPE[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
if (rotation == 0) {
if (type.castShadow) {
@@ -1068,7 +1066,7 @@ public class SceneBuilder {
entity = new LocEntity(locID, rotation, 1, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE_1[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
scene.setWall(Scene.ROTATION_WALL_CORNER_TYPE[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
if (type.castShadow) {
if (rotation == 0) {
@@ -1086,17 +1084,18 @@ public class SceneBuilder {
collision.addWall(z, rotation, x, kind, type.blocksProjectiles);
}
} else if (kind == 2) {
int i_137_ = (rotation + 1) & 0x3;
Entity entity;
Entity entity_138_;
int nextRotation = (rotation + 1) & 0x3;
Entity entityA;
Entity entityB;
if ((type.seqID == -1) && (type.overrideTypeIDs == null)) {
entity = type.getModel(2, 4 + rotation, heightmapSW, heightmapSE, heightmapNE, heightmapNW, -1);
entity_138_ = type.getModel(2, i_137_, heightmapSW, heightmapSE, heightmapNE, heightmapNW, -1);
entityA = type.getModel(2, 4 + rotation, heightmapSW, heightmapSE, heightmapNE, heightmapNW, -1);
entityB = type.getModel(2, nextRotation, heightmapSW, heightmapSE, heightmapNE, heightmapNW, -1);
} else {
entity = new LocEntity(locID, 4 + rotation, 2, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
entity_138_ = new LocEntity(locID, i_137_, 2, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
entityA = new LocEntity(locID, 4 + rotation, 2, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
entityB = new LocEntity(locID, nextRotation, 2, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, WALL_ROTATION_OCCLUDE_TYPE[i_137_], entity_138_, level, x, z, heightmapAverage, bitset, info);
scene.setWall(Scene.ROTATION_WALL_TYPE[rotation], entityA, Scene.ROTATION_WALL_TYPE[nextRotation], entityB, level, x, z, heightmapAverage, bitset, info);
if (type.occludes) {
if (rotation == 0) {
levelOccludemap[level][x][z] |= 0b001_001_001_001;
@@ -1125,7 +1124,7 @@ public class SceneBuilder {
} else {
entity = new LocEntity(locID, rotation, 3, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWall(WALL_ROTATION_OCCLUDE_TYPE_1[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
scene.setWall(Scene.ROTATION_WALL_CORNER_TYPE[rotation], entity, 0, null, level, x, z, heightmapAverage, bitset, info);
if (type.castShadow) {
if (rotation == 0) {
levelShademap[level][x][z + 1] = (byte) 50;
@@ -1181,7 +1180,7 @@ public class SceneBuilder {
} else {
entity = new LocEntity(locID, 0, 4, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWallDecoration(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, level, x, z, heightmapAverage, rotation * 512, 0, 0, bitset, info);
scene.setWallDecoration(Scene.ROTATION_WALL_TYPE[rotation], entity, level, x, z, heightmapAverage, rotation * 512, 0, 0, bitset, info);
} else if (kind == 5) {
int i_142_ = 16;
int i_143_ = scene.getWallBitset(level, x, z);
@@ -1194,7 +1193,7 @@ public class SceneBuilder {
} else {
entity = new LocEntity(locID, 0, 4, heightmapSE, heightmapNE, heightmapSW, heightmapNW, type.seqID, true);
}
scene.setWallDecoration(WALL_ROTATION_OCCLUDE_TYPE[rotation], entity, level, x, z, heightmapAverage, rotation * 512, anIntArray137[rotation] * i_142_, anIntArray144[rotation] * i_142_, bitset, info);
scene.setWallDecoration(Scene.ROTATION_WALL_TYPE[rotation], entity, level, x, z, heightmapAverage, rotation * 512, anIntArray137[rotation] * i_142_, anIntArray144[rotation] * i_142_, bitset, info);
} else if (kind == 6) {
Entity entity;
if ((type.seqID == -1) && (type.overrideTypeIDs == null)) {
@@ -1309,7 +1308,7 @@ public class SceneBuilder {
break;
}
if (i_191_ <= 49) {
levelTileOverlayIDs[i_187_][i_186_][i] = buffer.read8();
levelTileOverlayIDs[i_187_][i_186_][i] = buffer.read();
levelTileOverlayShape[i_187_][i_186_][i] = (byte) ((i_191_ - 2) / 4);
levelTileOverlayRotation[i_187_][i_186_][i] = (byte) (((i_191_ - 2) + i_188_) & 0x3);
} else if (i_191_ <= 81) {
+4
View File
@@ -19,6 +19,10 @@ public class SceneLoc {
public int bitset;
public byte info;
public boolean drawn() {
return cycle == Scene.cycle;
}
public SceneLoc() {
}
+3 -3
View File
@@ -7,9 +7,9 @@ public class SceneObjStack {
public int y;
public int x;
public int z;
public Entity entity0;
public Entity entity1;
public Entity entity2;
public Entity obj0;
public Entity obj1;
public Entity obj2;
public int bitset;
public int offset;
+5 -5
View File
@@ -8,7 +8,7 @@ public class SceneTile extends DoublyLinkedList.Node {
public final int z;
public final int level;
public final SceneLoc[] locs = new SceneLoc[5];
public final int[] locFlags = new int[5];
public final int[] locSpan = new int[5];
public int dataLevel;
public SceneTileUnderlay underlay;
public SceneTileOverlay overlay;
@@ -17,15 +17,15 @@ public class SceneTile extends DoublyLinkedList.Node {
public SceneGroundDecoration groundDecoration;
public SceneObjStack objStack;
public int locCount;
public int flags;
public int spans;
/**
* Used as a short circuit to prevent drawing tiles above the top level. Mostly applies to lowmem.
* @see Scene#draw(int, int, int, int, int, int)
*/
public int drawLevel;
public boolean aBoolean1322;
public boolean aBoolean1323;
public boolean aBoolean1324;
public boolean drawable;
public boolean update;
public boolean containsLocs;
public int anInt1325;
public int anInt1326;
public int anInt1327;
+2 -2
View File
@@ -7,8 +7,8 @@ public class SceneWall {
public int y;
public int x;
public int z;
public int occludeA;
public int occludeB;
public int typeA;
public int typeB;
public Entity entityA;
public Entity entityB;
public int bitset;