summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-25 23:31:49 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-10 16:59:35 +0200
commit27d3e801629cc952979f48bb507dae782bbab34a (patch)
tree8484e4caffb87df15c94e0ad2bca3d8a350700d0 /src/resources/mapreader.cpp
parentbcd1d9aff41b5c152cafade7532242c94ac1f710 (diff)
downloadmana-27d3e801629cc952979f48bb507dae782bbab34a.tar.gz
mana-27d3e801629cc952979f48bb507dae782bbab34a.tar.bz2
mana-27d3e801629cc952979f48bb507dae782bbab34a.tar.xz
mana-27d3e801629cc952979f48bb507dae782bbab34a.zip
Add support for zlib map layer compression.
Reviewed-by: Bertram
Diffstat (limited to 'src/resources/mapreader.cpp')
-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 b7c4fd72..b0720af5 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -277,7 +277,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map)
if (encoding == "base64")
{
- if (!compression.empty() && compression != "gzip")
+ if (!compression.empty() && compression != "gzip" && compression != "zlib")
{
logger->log("Warning: only gzip layer compression supported!");
return;
@@ -313,7 +313,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;