diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-03 17:32:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-03 17:32:52 +0300 |
commit | 2d9b4f091c8265329220c56db76da9eb252d4a2d (patch) | |
tree | 04215467f315cb86e0e40aa8a52032090f2bd37d /src/resources/mapreader.cpp | |
parent | 074734bcb4fe6e556708c16c68120fe6d828ce17 (diff) | |
download | mv-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.gz mv-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.bz2 mv-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.xz mv-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.cpp | 5 |
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; + } } } |