cache: Name ObjectDefiniton's varpID and configID correctly
This commit is contained in:
@@ -49,7 +49,7 @@ public class ObjectDefinition
|
||||
private boolean nonFlatShading = false;
|
||||
private int anInt2088 = -1;
|
||||
private int animationID = -1;
|
||||
private int varpID = -1;
|
||||
private int varbitID = -1;
|
||||
private int ambient = 0;
|
||||
private int contrast = 0;
|
||||
private String[] actions = new String[5];
|
||||
@@ -68,7 +68,7 @@ public class ObjectDefinition
|
||||
private int anInt2106 = -1;
|
||||
private int[] configChangeDest;
|
||||
private boolean isRotated = false;
|
||||
private int configId = -1;
|
||||
private int varpID = -1;
|
||||
private int anInt2110 = -1;
|
||||
private boolean aBool2111 = false;
|
||||
private int anInt2112 = 0;
|
||||
|
||||
@@ -253,14 +253,14 @@ public class ObjectLoader
|
||||
{
|
||||
varpID = -1;
|
||||
}
|
||||
def.setVarpID(varpID);
|
||||
def.setVarbitID(varpID);
|
||||
|
||||
int configId = is.readUnsignedShort();
|
||||
if (configId == 0xFFFF)
|
||||
{
|
||||
configId = -1;
|
||||
}
|
||||
def.setConfigId(configId);
|
||||
def.setVarpID(configId);
|
||||
|
||||
int length = is.readUnsignedByte();
|
||||
int[] configChangeDest = new int[length + 2];
|
||||
@@ -313,14 +313,14 @@ public class ObjectLoader
|
||||
{
|
||||
varpID = -1;
|
||||
}
|
||||
def.setVarpID(varpID);
|
||||
def.setVarbitID(varpID);
|
||||
|
||||
int configId = is.readUnsignedShort();
|
||||
if (configId == 0xFFFF)
|
||||
{
|
||||
configId = -1;
|
||||
}
|
||||
def.setConfigId(configId);
|
||||
def.setVarpID(configId);
|
||||
|
||||
|
||||
int var = is.readUnsignedShort();
|
||||
|
||||
@@ -196,8 +196,8 @@ public class ObjectSaver
|
||||
if (obj.getConfigChangeDest() != null)
|
||||
{
|
||||
out.writeByte(92);
|
||||
out.writeShort(obj.getVarbitID());
|
||||
out.writeShort(obj.getVarpID());
|
||||
out.writeShort(obj.getConfigId());
|
||||
|
||||
int[] c = obj.getConfigChangeDest();
|
||||
out.writeShort(c[c.length - 1]);
|
||||
|
||||
Reference in New Issue
Block a user