summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-03 17:32:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-03 17:32:52 +0300
commit2d9b4f091c8265329220c56db76da9eb252d4a2d (patch)
tree04215467f315cb86e0e40aa8a52032090f2bd37d /src/resources/mapreader.cpp
parent074734bcb4fe6e556708c16c68120fe6d828ce17 (diff)
downloadplus-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.gz
plus-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.bz2
plus-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.xz
plus-2d9b4f091c8265329220c56db76da9eb252d4a2d.zip
Allow load layers only with down SideView attribute or if this attribute missing.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index f50b7cb03..d1cf92396 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -908,6 +908,11 @@ void MapReader::readLayer(const XmlNodePtr node, Map *const map)
{
conditionLayer = atoi(value.c_str());
}
+ else if (pname == "SideView")
+ {
+ if (value != "down")
+ return;
+ }
}
}