summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/serverfeatures.cpp7
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
5 files changed, 18 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
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 8e2abbe94..75d2da955 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -78,6 +78,8 @@ class ServerFeatures notfinal
virtual bool haveCharRename() const = 0;
virtual bool haveBankApi() const = 0;
+
+ virtual bool haveServerVersion() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index d80a8a0fc..b83ef8edf 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -154,4 +154,9 @@ bool ServerFeatures::haveBankApi() const
return false;
}
+bool ServerFeatures::haveServerVersion() const
+{
+ return true;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index be3409d21..2c3e1e06c 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/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 TmwAthena