summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-09 01:57:44 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-09 01:57:44 +0300
commitff96948d57cacd580c23d892e099304476df8a2e (patch)
tree68e7115778e9b5625c096996b63c2fefc74ba4e8 /src/resources/mapreader.cpp
parent59302a2460ad879ea662fec0b808dfe5e6dd36c0 (diff)
downloadplus-ff96948d57cacd580c23d892e099304476df8a2e.tar.gz
plus-ff96948d57cacd580c23d892e099304476df8a2e.tar.bz2
plus-ff96948d57cacd580c23d892e099304476df8a2e.tar.xz
plus-ff96948d57cacd580c23d892e099304476df8a2e.zip
Add NotVersion map layer property.
Client load this layer if client version less than property value.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 35a472125..19f9ab3f2 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -481,6 +481,8 @@ void MapReader::readLayer(XmlNodePtr node, Map *map)
return;
if (pname == "Version" && value > CHECK_VERSION)
return;
+ if (pname == "NotVersion" && value <= CHECK_VERSION)
+ return;
}
}