diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 7 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 |
2 files changed, 9 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 diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 2debb3647..ecad6bef5 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -81,6 +81,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveCharRename() const override final; bool haveBankApi() const override final; + + bool haveServerVersion() const override final; }; } // namespace EAthena |