From f90a8928e78702b393ca2f688da6ca197eb94256 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 10 Mar 2012 22:10:15 +0000 Subject: Completely integrated the new axis ordering. Will update worlds accordingly git-svn-id: http://mc-server.googlecode.com/svn/trunk@396 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WSSCompact.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/WSSCompact.h') 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 cPAKFiles; -- cgit v1.2.3