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