Update cache to 142

This commit is contained in:
Adam
2017-05-29 18:30:32 -04:00
parent 2e5e118df4
commit 21f9f583f9
4 changed files with 9 additions and 8 deletions

2
cache/pom.xml vendored
View File

@@ -37,7 +37,7 @@
<name>Cache</name> <name>Cache</name>
<properties> <properties>
<cache.version>140</cache.version> <cache.version>142</cache.version>
<antlr4.version>4.6</antlr4.version> <antlr4.version>4.6</antlr4.version>
</properties> </properties>

View File

@@ -42,7 +42,8 @@ public enum IndexType
CLIENTSCRIPT(12), CLIENTSCRIPT(12),
FONTS(13), FONTS(13),
VORBIS(14), VORBIS(14),
INSTRUMENTS(15); INSTRUMENTS(15),
WORLDMAP(16);
private int id; private int id;

View File

@@ -193,10 +193,6 @@ public class ObjectLoader
def.setRetextureToFind(retextureToFind); def.setRetextureToFind(retextureToFind);
def.setTextureToReplace(textureToReplace); def.setTextureToReplace(textureToReplace);
} }
else if (opcode == 60)
{
def.setMapIconID(is.readUnsignedShort());
}
else if (62 == opcode) else if (62 == opcode)
{ {
def.setIsRotated(true); def.setIsRotated(true);
@@ -303,7 +299,11 @@ public class ObjectLoader
} }
else if (opcode == 81) else if (opcode == 81)
{ {
def.setAnInt2105(is.readUnsignedByte()); def.setAnInt2105(is.readUnsignedByte() * 256);
}
else if (opcode == 82)
{
def.setMapIconID(is.readUnsignedShort());
} }
else if (opcode == 92) else if (opcode == 92)
{ {

View File

@@ -37,7 +37,7 @@ public class StoreLocation
{ {
private static final Logger logger = LoggerFactory.getLogger(StoreLocation.class); private static final Logger logger = LoggerFactory.getLogger(StoreLocation.class);
private static final int NUM_INDEXES = 15; private static final int NUM_INDEXES = 16;
private static final String TMP_DIR = "d:/temp"; private static final String TMP_DIR = "d:/temp";
public static File LOCATION; public static File LOCATION;