diff options
author | Alexander Harkness <bearbin@gmail.com> | 2014-01-17 20:11:37 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2014-01-17 20:11:37 +0100 |
commit | 935600bf0a8d8d97de2f9b2fb391d3b632dfd350 (patch) | |
tree | 7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/WorldStorage/WSSAnvil.h | |
parent | APIDump: Updated cPluginManager:GetAllPlugins(). (diff) | |
parent | Added user setting compression factor (diff) | |
download | cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.gz cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.bz2 cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.lz cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.xz cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.zst cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.zip |
Diffstat (limited to 'src/WorldStorage/WSSAnvil.h')
-rw-r--r-- | src/WorldStorage/WSSAnvil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.h b/src/WorldStorage/WSSAnvil.h index 0a7406267..e66e63b08 100644 --- a/src/WorldStorage/WSSAnvil.h +++ b/src/WorldStorage/WSSAnvil.h @@ -47,7 +47,7 @@ class cWSSAnvil : public: - cWSSAnvil(cWorld * a_World); + cWSSAnvil(cWorld * a_World, int a_CompressionFactor); virtual ~cWSSAnvil(); protected: @@ -89,6 +89,8 @@ protected: cCriticalSection m_CS; cMCAFiles m_Files; // a MRU cache of MCA files + + int m_CompressionFactor; /// Gets chunk data from the correct file; locks file CS as needed bool GetChunkData(const cChunkCoords & a_Chunk, AString & a_Data); |