summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-07 21:03:44 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-07 21:03:44 +0100
commit0cee2428c1680c865cb00888a0afdf12bf261750 (patch)
tree30764c9cbb19a415ca626fad6001aba9c16eb56d /source
parentFixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380 (diff)
downloadcuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar.gz
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar.bz2
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar.lz
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar.xz
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.tar.zst
cuberite-0cee2428c1680c865cb00888a0afdf12bf261750.zip
Diffstat (limited to '')
-rw-r--r--source/WSSCompact.cpp4
-rw-r--r--source/WSSCompact.h2
2 files changed, 2 insertions, 4 deletions
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