summaryrefslogtreecommitdiff
path: root/src/net/eathena/serverfeatures.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-06 19:38:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-06 19:38:52 +0300
commite899e18fa2bca908251f7f87561561a822c7fe7d (patch)
treebbb44d78a389b53cef26b60492cf7e5350b5d49e /src/net/eathena/serverfeatures.cpp
parentef5ed949e3a05620f6211515d7a950743b39babe (diff)
downloadmv-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.gz
mv-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.bz2
mv-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.xz
mv-e899e18fa2bca908251f7f87561561a822c7fe7d.zip
Add server feature "have map server version".
Diffstat (limited to 'src/net/eathena/serverfeatures.cpp')
-rw-r--r--src/net/eathena/serverfeatures.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index e15ea2133..943c6314e 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -24,6 +24,7 @@
#include "debug.h"
+extern int serverVersion;
extern Net::ServerFeatures *serverFeatures;
namespace EAthena
@@ -159,4 +160,9 @@ bool ServerFeatures::haveServerVersion() const
return Net::getNetworkType() == ServerInfo::EVOL2;
}
+bool ServerFeatures::haveMapServerVersion() const
+{
+ return serverVersion > 0;
+}
+
} // namespace EAthena