WSSCompact: fixed switched version values (!); removed unused methods
git-svn-id: http://mc-server.googlecode.com/svn/trunk@383 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
787382caf8
commit
0cee2428c1
@ -270,8 +270,8 @@ cWSSCompact::cPAKFile::cPAKFile(const AString & a_FileName, int a_LayerX, int a_
|
|||||||
m_LayerX(a_LayerX),
|
m_LayerX(a_LayerX),
|
||||||
m_LayerZ(a_LayerZ),
|
m_LayerZ(a_LayerZ),
|
||||||
m_NumDirty(0),
|
m_NumDirty(0),
|
||||||
m_ChunkVersion( PAK_VERSION ), // Init with latest version
|
m_ChunkVersion( CHUNK_VERSION ), // Init with latest version
|
||||||
m_PakVersion( CHUNK_VERSION )
|
m_PakVersion( PAK_VERSION )
|
||||||
{
|
{
|
||||||
cFile f;
|
cFile f;
|
||||||
if (!f.Open(m_FileName, cFile::fmRead))
|
if (!f.Open(m_FileName, cFile::fmRead))
|
||||||
|
@ -43,7 +43,6 @@ protected:
|
|||||||
bool EraseChunkData(const cChunkCoords & a_Chunk);
|
bool EraseChunkData(const cChunkCoords & a_Chunk);
|
||||||
|
|
||||||
bool SaveChunk(const cChunkCoords & a_Chunk, cWorld * a_World);
|
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 GetLayerX(void) const {return m_LayerX; }
|
||||||
int GetLayerZ(void) const {return m_LayerZ; }
|
int GetLayerZ(void) const {return m_LayerZ; }
|
||||||
@ -65,7 +64,6 @@ protected:
|
|||||||
char m_ChunkVersion;
|
char m_ChunkVersion;
|
||||||
char m_PakVersion;
|
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
|
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 SynchronizeFile(void); // Writes m_DataContents along with the headers to file, resets m_NumDirty
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user