summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 06:20:21 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 06:20:21 +0300
commitb17247b5586f7e6a20802a0d3113b96c50810665 (patch)
treeb197a098a89d01a70387cac2264882e1dd3561cd /src
parentfc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d (diff)
downloadplus-b17247b5586f7e6a20802a0d3113b96c50810665.tar.gz
plus-b17247b5586f7e6a20802a0d3113b96c50810665.tar.bz2
plus-b17247b5586f7e6a20802a0d3113b96c50810665.tar.xz
plus-b17247b5586f7e6a20802a0d3113b96c50810665.zip
Add server feature for check is pincode supported.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-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, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index e5d987b4a..a5f68a9cb 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -150,4 +150,9 @@ bool ServerFeatures::haveKillerId() const
return serverVersion >= 14;
}
+bool ServerFeatures::havePincode() const
+{
+ return true;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index c96e08114..d1912be01 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -79,6 +79,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMoveWhileSit() const override final;
bool haveKillerId() const override final;
+
+ bool havePincode() const override final;
};
} // namespace EAthena
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index f1c863090..defa1e086 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -81,6 +81,8 @@ class ServerFeatures notfinal
virtual bool haveMoveWhileSit() const = 0;
virtual bool haveKillerId() const = 0;
+
+ virtual bool havePincode() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index 23b9d6598..c6e38da8c 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -148,4 +148,9 @@ bool ServerFeatures::haveKillerId() const
return false;
}
+bool ServerFeatures::havePincode() const
+{
+ return false;
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index bf836251a..2f5c118af 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -79,6 +79,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveMoveWhileSit() const override final A_CONST;
bool haveKillerId() const override final A_CONST;
+
+ bool havePincode() const override final A_CONST;
};
} // namespace TmwAthena