cache: rename objectdefinition ambient sound ids

This commit is contained in:
Adam
2021-11-01 18:47:31 -04:00
parent c61d0c8a2f
commit 2eb2cdc328
3 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ public class ObjectDefinition
private int sizeX = 1; private int sizeX = 1;
private int sizeY = 1; private int sizeY = 1;
private int anInt2083 = 0; private int anInt2083 = 0;
private int[] anIntArray2084; private int[] ambientSoundIds;
private int offsetX = 0; private int offsetX = 0;
private boolean mergeNormals = false; private boolean mergeNormals = false;
private int wallOrDoor = -1; private int wallOrDoor = -1;

View File

@@ -300,7 +300,7 @@ public class ObjectLoader
anIntArray2084[index] = is.readUnsignedShort(); anIntArray2084[index] = is.readUnsignedShort();
} }
def.setAnIntArray2084(anIntArray2084); def.setAmbientSoundIds(anIntArray2084);
} }
else if (opcode == 81) else if (opcode == 81)
{ {

View File

@@ -176,14 +176,14 @@ public class ObjectSaver
out.writeShort(obj.getAmbientSoundId()); out.writeShort(obj.getAmbientSoundId());
out.writeByte(obj.getAnInt2083()); out.writeByte(obj.getAnInt2083());
} }
if (obj.getAnIntArray2084() != null) if (obj.getAmbientSoundIds() != null)
{ {
out.writeByte(79); out.writeByte(79);
out.writeShort(obj.getAnInt2112()); out.writeShort(obj.getAnInt2112());
out.writeShort(obj.getAnInt2113()); out.writeShort(obj.getAnInt2113());
out.writeByte(obj.getAnInt2083()); out.writeByte(obj.getAnInt2083());
out.writeByte(obj.getAnIntArray2084().length); out.writeByte(obj.getAmbientSoundIds().length);
for (int i : obj.getAnIntArray2084()) for (int i : obj.getAmbientSoundIds())
{ {
out.writeShort(i); out.writeShort(i);
} }