summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 22:08:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 22:08:28 +0300
commit3f9b89422c25cce1c2177bb027fe4d96d3d9294f (patch)
treeb4ebc0ae3bc1d31539cac88b919486c5cf2e57f1 /src/net/eathena
parent8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d (diff)
downloadplus-3f9b89422c25cce1c2177bb027fe4d96d3d9294f.tar.gz
plus-3f9b89422c25cce1c2177bb027fe4d96d3d9294f.tar.bz2
plus-3f9b89422c25cce1c2177bb027fe4d96d3d9294f.tar.xz
plus-3f9b89422c25cce1c2177bb027fe4d96d3d9294f.zip
Remove ServerFeatures haveSlide because it depend only on server type.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp6
-rw-r--r--src/net/eathena/adminhandler.h2
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
4 files changed, 8 insertions, 7 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index a2aa38734..e063f2f01 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -367,4 +367,10 @@ void AdminHandler::guildRecall(const std::string &name) const
Gm::runCommand("guildrecall", name);
}
+void AdminHandler::slide(const int x, const int y) const
+{
+ Gm::runCommand("slide",
+ strprintf("%d %d", x, y));
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 5c632a88b..0c9e25e72 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -154,6 +154,8 @@ class AdminHandler final : public Ea::AdminHandler
void guildRecall(const std::string &name) const override final;
+ void slide(const int x, const int y) const override final;
+
protected:
static std::string mStatsName;
};
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp
index 2c7896eed..9849f0811 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -136,11 +136,6 @@ bool ServerFeatures::haveExtendedRiding() const
return serverVersion > 0;
}
-bool ServerFeatures::haveSlide() const
-{
- return true;
-}
-
bool ServerFeatures::haveExtendedDropsPosition() const
{
return serverVersion >= 12;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index 509807adf..308cca255 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -74,8 +74,6 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveExtendedRiding() const override final;
- bool haveSlide() const override final;
-
bool haveExtendedDropsPosition() const override final;
bool haveSecureTrades() const override final;