From aae1df481432c4ea162641e5ff5fdc5c385afd62 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Thu, 23 Oct 2008 16:22:25 +0000 Subject: Added a patch by peavey over on TMW to disallow adding items to trade if the trade partner doesn't have room for them. --- src/net/tradehandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/tradehandler.cpp') diff --git a/src/net/tradehandler.cpp b/src/net/tradehandler.cpp index cfd24977..9174d846 100644 --- a/src/net/tradehandler.cpp +++ b/src/net/tradehandler.cpp @@ -189,6 +189,12 @@ void TradeHandler::handleMessage(MessageIn *msg) "partner is over weighted.", BY_SERVER); break; + case 2: + // Add item failed - player has no free slot + chatWindow->chatLog("Failed adding item. Trade " + "partner has no free slot.", + BY_SERVER); + break; default: chatWindow->chatLog("Failed adding item for " "unknown reason.", BY_SERVER); -- cgit v1.2.3-70-g09d2