summaryrefslogtreecommitdiff
path: root/src/mapblock.h
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-12-09 14:30:37 -0800
committerlhofhansl <larsh@apache.org>2020-12-15 10:15:25 -0800
commite6380565236d6d963acf75538f1f8fec807190cc (patch)
treed5af32aff7273e13baafbe03a1dec08482d6abaa /src/mapblock.h
parentd0a38f694d483fbd9c0554c8d7175a94097fd67e (diff)
downloadminetest-e6380565236d6d963acf75538f1f8fec807190cc.tar.gz
minetest-e6380565236d6d963acf75538f1f8fec807190cc.tar.bz2
minetest-e6380565236d6d963acf75538f1f8fec807190cc.zip
Allow configuring block disk and net compression. Change default disk level.
Diffstat (limited to 'src/mapblock.h')
-rw-r--r--src/mapblock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapblock.h b/src/mapblock.h
index 6b5015cab..641a1b69b 100644
--- a/src/mapblock.h
+++ b/src/mapblock.h
@@ -482,7 +482,7 @@ public:
// These don't write or read version by itself
// Set disk to true for on-disk format, false for over-the-network format
// Precondition: version >= SER_FMT_VER_LOWEST_WRITE
- void serialize(std::ostream &os, u8 version, bool disk);
+ void serialize(std::ostream &os, u8 version, bool disk, int compression_level);
// If disk == true: In addition to doing other things, will add
// unknown blocks from id-name mapping to wndef
void deSerialize(std::istream &is, u8 version, bool disk);