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/serverfeatures.cpp | |
parent | ef5ed949e3a05620f6211515d7a950743b39babe (diff) | |
download | manaplus-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/serverfeatures.cpp')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 6 |
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 |