summaryrefslogtreecommitdiff
path: root/src/net/ea
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/ea
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/ea')
-rw-r--r--src/net/ea/adminhandler.cpp15
-rw-r--r--src/net/ea/adminhandler.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp
index d02d0ceda..a5bfeea27 100644
--- a/src/net/ea/adminhandler.cpp
+++ b/src/net/ea/adminhandler.cpp
@@ -22,8 +22,6 @@
#include "net/ea/adminhandler.h"
-#include "game.h"
-
#include "net/serverfeatures.h"
#include "utils/gmfunctions.h"
@@ -72,19 +70,6 @@ void AdminHandler::createItems(const int id,
strprintf("%d %d", id, amount));
}
-void AdminHandler::slide(const int x, const int y) const
-{
- if (serverFeatures->haveSlide())
- {
- Gm::runCommand("slide",
- strprintf("%d %d", x, y));
- }
- else
- {
- warp(Game::instance()->getCurrentMapName(), x, y);
- }
-}
-
void AdminHandler::spawn(const std::string &name) const
{
Gm::runCommand("spawn", name);
diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h
index 2577c0322..f300fda55 100644
--- a/src/net/ea/adminhandler.h
+++ b/src/net/ea/adminhandler.h
@@ -53,8 +53,6 @@ class AdminHandler notfinal : public Net::AdminHandler
void ipcheckName(const std::string &name) const override final;
- void slide(const int x, const int y) const override final;
-
void createItems(const int id,
const ItemColor color,
const int amount) const override final;