summaryrefslogtreecommitdiff
path: root/src/net/eathena
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
parentef5ed949e3a05620f6211515d7a950743b39babe (diff)
downloadmanaplus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.gz
manaplus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.bz2
manaplus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.xz
manaplus-e899e18fa2bca908251f7f87561561a822c7fe7d.zip
Add server feature "have map server version".
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/serverfeatures.cpp6
-rw-r--r--src/net/eathena/serverfeatures.h2
2 files changed, 8 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
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index ecad6bef5..3de5c0c83 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -83,6 +83,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveBankApi() const override final;
bool haveServerVersion() const override final;
+
+ bool haveMapServerVersion() const override final;
};
} // namespace EAthena