From 0cee2428c1680c865cb00888a0afdf12bf261750 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 7 Mar 2012 20:03:44 +0000 Subject: WSSCompact: fixed switched version values (!); removed unused methods git-svn-id: http://mc-server.googlecode.com/svn/trunk@383 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WSSCompact.cpp | 4 ++-- source/WSSCompact.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/WSSCompact.cpp b/source/WSSCompact.cpp index 8bd46dfbf..c9ae5f2f2 100644 --- a/source/WSSCompact.cpp +++ b/source/WSSCompact.cpp @@ -270,8 +270,8 @@ cWSSCompact::cPAKFile::cPAKFile(const AString & a_FileName, int a_LayerX, int a_ m_LayerX(a_LayerX), m_LayerZ(a_LayerZ), m_NumDirty(0), - m_ChunkVersion( PAK_VERSION ), // Init with latest version - m_PakVersion( CHUNK_VERSION ) + m_ChunkVersion( CHUNK_VERSION ), // Init with latest version + m_PakVersion( PAK_VERSION ) { cFile f; if (!f.Open(m_FileName, cFile::fmRead)) diff --git a/source/WSSCompact.h b/source/WSSCompact.h index c42c8c5b9..968092611 100644 --- a/source/WSSCompact.h +++ b/source/WSSCompact.h @@ -43,7 +43,6 @@ protected: bool EraseChunkData(const cChunkCoords & a_Chunk); bool SaveChunk(const cChunkCoords & a_Chunk, cWorld * a_World); - bool LoadChunk(const cChunkCoords & a_Chunk, cWorld * a_World); int GetLayerX(void) const {return m_LayerX; } int GetLayerZ(void) const {return m_LayerZ; } @@ -65,7 +64,6 @@ protected: char m_ChunkVersion; char m_PakVersion; - bool LoadChunk(const cChunkCoords & a_Chunk, int a_Offset, sChunkHeader * a_Header, cWorld * a_World); 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 -- cgit v1.2.3