summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
commit0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9 (patch)
treea07d923f09e8c9aa4a478e2bd572ab94edf09ae4 /src/net
parent148b62c05337eaaaf3a1ead212b3792122812cee (diff)
downloadmana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.gz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.bz2
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.xz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.zip
mantis id=118 - Added Item Shortcut Bar.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/inventoryhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp
index 67038c99..400c570d 100644
--- a/src/net/inventoryhandler.cpp
+++ b/src/net/inventoryhandler.cpp
@@ -30,6 +30,7 @@
#include "../resources/iteminfo.h"
#include "../item.h"
+#include "../itemshortcut.h"
#include "../localplayer.h"
#include "../gui/chat.h"
@@ -72,13 +73,13 @@ void InventoryHandler::handleMessage(MessageIn *msg)
msg->skip(8); // card (4 shorts)
player_node->addInvItem(index, itemId, amount, false);
-
// Trick because arrows are not considered equipment
if (itemId == 1199 || itemId == 529)
{
player_node->getInvItem(index)->setEquipment(true);
}
}
+ itemShortcut->load();
break;
case SMSG_PLAYER_INVENTORY_ADD: