summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 15:05:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 15:05:48 +0300
commitb44ae759ff5a848b7c6d15dc80bba4e7a6948575 (patch)
tree17a577d75124c622fb00b516c95f15cc350b374a /src/commands.cpp
parentce0c0778675908f7be557b1c115de3eabb828079 (diff)
downloadmanaplus-b44ae759ff5a848b7c6d15dc80bba4e7a6948575.tar.gz
manaplus-b44ae759ff5a848b7c6d15dc80bba4e7a6948575.tar.bz2
manaplus-b44ae759ff5a848b7c6d15dc80bba4e7a6948575.tar.xz
manaplus-b44ae759ff5a848b7c6d15dc80bba4e7a6948575.zip
Move chat command /trade into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 72ba9f6c1..52a9dbb2a 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -206,23 +206,6 @@ impHandler(attack)
return true;
}
-impHandler(trade)
-{
- if (!actorManager)
- return false;
-
- const Being *const being = actorManager->findBeingByName(
- event.args, ActorType::PLAYER);
- if (being)
- {
- Net::getTradeHandler()->request(being);
- tradePartnerName = being->getName();
- if (tradeWindow)
- tradeWindow->clear();
- }
- return true;
-}
-
impHandler0(dirs)
{
if (!localPlayer || !debugChatTab)