From 2d9b4f091c8265329220c56db76da9eb252d4a2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Aug 2016 17:32:52 +0300 Subject: Allow load layers only with down SideView attribute or if this attribute missing. --- src/resources/mapreader.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resources/mapreader.cpp') 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; + } } } -- cgit v1.2.3-70-g09d2