From 3f9b89422c25cce1c2177bb027fe4d96d3d9294f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 22:08:28 +0300 Subject: Remove ServerFeatures haveSlide because it depend only on server type. --- src/net/tmwa/adminhandler.cpp | 7 +++++++ src/net/tmwa/adminhandler.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 ----- src/net/tmwa/serverfeatures.h | 2 -- 4 files changed, 9 insertions(+), 7 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index 9323f7b04..514c53090 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -22,6 +22,8 @@ #include "net/tmwa/adminhandler.h" +#include "game.h" + #include "net/tmwa/messageout.h" #include "net/tmwa/protocolout.h" @@ -287,4 +289,9 @@ void AdminHandler::guildRecall(const std::string &name A_UNUSED) const { } +void AdminHandler::slide(const int x, const int y) const +{ + warp(Game::instance()->getCurrentMapName(), x, y); +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index b43d5fd0c..7cbf7c0f8 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -167,6 +167,8 @@ class AdminHandler final : public Ea::AdminHandler void breakGuild(const std::string &name) const override final A_CONST; void guildRecall(const std::string &name) const override final A_CONST; + + void slide(const int x, const int y) const override final; }; } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 4613d55ed..f6fc06671 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -134,11 +134,6 @@ bool ServerFeatures::haveExtendedRiding() const return false; } -bool ServerFeatures::haveSlide() const -{ - return false; -} - bool ServerFeatures::haveExtendedDropsPosition() const { return false; diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 453ab9b35..7f2efbf64 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -74,8 +74,6 @@ class ServerFeatures final : public Net::ServerFeatures bool haveExtendedRiding() const override final A_CONST; - bool haveSlide() const override final A_CONST; - bool haveExtendedDropsPosition() const override final A_CONST; bool haveSecureTrades() const override final A_CONST; -- cgit v1.2.3-70-g09d2