diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-06 01:23:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-06 01:23:02 +0300 |
commit | 4a688fa73264495d6f0db661e6d3d5c4630ed6df (patch) | |
tree | 5a3a4c45e7a73c71d7aa699c3a987060aae96bfe /src/net/eathena/serverfeatures.cpp | |
parent | 6245aed671abe032d47db8b0bce7d7b3f3ca522a (diff) | |
download | manaverse-4a688fa73264495d6f0db661e6d3d5c4630ed6df.tar.gz manaverse-4a688fa73264495d6f0db661e6d3d5c4630ed6df.tar.bz2 manaverse-4a688fa73264495d6f0db661e6d3d5c4630ed6df.tar.xz manaverse-4a688fa73264495d6f0db661e6d3d5c4630ed6df.zip |
Add server feature "have server version".
Diffstat (limited to 'src/net/eathena/serverfeatures.cpp')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 87e3bab1e..e15ea2133 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -20,6 +20,8 @@ #include "net/eathena/serverfeatures.h" +#include "net/net.h" + #include "debug.h" extern Net::ServerFeatures *serverFeatures; @@ -152,4 +154,9 @@ bool ServerFeatures::haveBankApi() const return true; } +bool ServerFeatures::haveServerVersion() const +{ + return Net::getNetworkType() == ServerInfo::EVOL2; +} + } // namespace EAthena |