summaryrefslogtreecommitdiffstats
path: root/source/WSSCompact.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 23:10:15 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 23:10:15 +0100
commitf90a8928e78702b393ca2f688da6ca197eb94256 (patch)
tree1e797b311c2cd37e7d756d19701c27c9eb7b2765 /source/WSSCompact.h
parentAnvil support: compatible with both chunk orderings (diff)
downloadcuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar.gz
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar.bz2
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar.lz
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar.xz
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.tar.zst
cuberite-f90a8928e78702b393ca2f688da6ca197eb94256.zip
Diffstat (limited to 'source/WSSCompact.h')
-rw-r--r--source/WSSCompact.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/WSSCompact.h b/source/WSSCompact.h
index 968092611..cd753ce9c 100644
--- a/source/WSSCompact.h
+++ b/source/WSSCompact.h
@@ -48,7 +48,11 @@ protected:
int GetLayerZ(void) const {return m_LayerZ; }
static const int PAK_VERSION = 1;
+#if AXIS_ORDER == AXIS_ORDER_XZY
+ static const int CHUNK_VERSION = 3;
+#elif AXIS_ORDER == AXIS_ORDER_YZX
static const int CHUNK_VERSION = 2;
+#endif
protected:
AString m_FileName;
@@ -67,7 +71,8 @@ protected:
bool SaveChunkToData(const cChunkCoords & a_Chunk, cWorld * a_World); // Saves the chunk to m_DataContents, updates headers and m_NumDirty
void SynchronizeFile(void); // Writes m_DataContents along with the headers to file, resets m_NumDirty
- void UpdateChunk1To2(void);
+ void UpdateChunk1To2(void); // Height from 128 to 256
+ void UpdateChunk2To3(void); // Axis order from YZX to XZY
} ;
typedef std::list<cPAKFile *> cPAKFiles;