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 | |
parent | 074734bcb4fe6e556708c16c68120fe6d828ce17 (diff) | |
download | manaverse-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.gz manaverse-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.bz2 manaverse-2d9b4f091c8265329220c56db76da9eb252d4a2d.tar.xz manaverse-2d9b4f091c8265329220c56db76da9eb252d4a2d.zip |
Allow load layers only with down SideView attribute or if this attribute missing.
Diffstat (limited to 'src')
-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; + } } } |