summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-25 23:31:49 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-25 23:31:49 +0200
commit31f06adabfb867c5bc2959a63874c07bec4a8319 (patch)
tree3bca1da1ad7314058bdece8e780866e0e0ae2c1a
parent2fb207111d521f223dbed516c438adbbdf5fc53e (diff)
downloadmanaverse-31f06adabfb867c5bc2959a63874c07bec4a8319.tar.gz
manaverse-31f06adabfb867c5bc2959a63874c07bec4a8319.tar.bz2
manaverse-31f06adabfb867c5bc2959a63874c07bec4a8319.tar.xz
manaverse-31f06adabfb867c5bc2959a63874c07bec4a8319.zip
Add support for zlib map layer compression.
-rw-r--r--src/resources/mapreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index cf26830f2..d990d2cb0 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -438,7 +438,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map)
if (encoding == "base64")
{
- if (!compression.empty() && compression != "gzip")
+ if (!compression.empty() && compression != "gzip" && compression != "zlib")
{
logger->log1("Warning: only gzip layer"
" compression supported!");
@@ -476,7 +476,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map)
if (binData)
{
- if (compression == "gzip")
+ if (compression == "gzip" || compression == "zlib")
{
// Inflate the gzipped layer data
unsigned char *inflated;