cache: rename objectdefinition ambient sound ids
This commit is contained in:
@@ -44,7 +44,7 @@ public class ObjectDefinition
|
||||
private int sizeX = 1;
|
||||
private int sizeY = 1;
|
||||
private int anInt2083 = 0;
|
||||
private int[] anIntArray2084;
|
||||
private int[] ambientSoundIds;
|
||||
private int offsetX = 0;
|
||||
private boolean mergeNormals = false;
|
||||
private int wallOrDoor = -1;
|
||||
|
||||
@@ -300,7 +300,7 @@ public class ObjectLoader
|
||||
anIntArray2084[index] = is.readUnsignedShort();
|
||||
}
|
||||
|
||||
def.setAnIntArray2084(anIntArray2084);
|
||||
def.setAmbientSoundIds(anIntArray2084);
|
||||
}
|
||||
else if (opcode == 81)
|
||||
{
|
||||
|
||||
@@ -176,14 +176,14 @@ public class ObjectSaver
|
||||
out.writeShort(obj.getAmbientSoundId());
|
||||
out.writeByte(obj.getAnInt2083());
|
||||
}
|
||||
if (obj.getAnIntArray2084() != null)
|
||||
if (obj.getAmbientSoundIds() != null)
|
||||
{
|
||||
out.writeByte(79);
|
||||
out.writeShort(obj.getAnInt2112());
|
||||
out.writeShort(obj.getAnInt2113());
|
||||
out.writeByte(obj.getAnInt2083());
|
||||
out.writeByte(obj.getAnIntArray2084().length);
|
||||
for (int i : obj.getAnIntArray2084())
|
||||
out.writeByte(obj.getAmbientSoundIds().length);
|
||||
for (int i : obj.getAmbientSoundIds())
|
||||
{
|
||||
out.writeShort(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user