summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
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