diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-06 19:38:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-06 19:38:52 +0300 |
commit | e899e18fa2bca908251f7f87561561a822c7fe7d (patch) | |
tree | bbb44d78a389b53cef26b60492cf7e5350b5d49e /src/net/eathena | |
parent | ef5ed949e3a05620f6211515d7a950743b39babe (diff) | |
download | plus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.gz plus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.bz2 plus-e899e18fa2bca908251f7f87561561a822c7fe7d.tar.xz plus-e899e18fa2bca908251f7f87561561a822c7fe7d.zip |
Add server feature "have map server version".
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 |
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 |