diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-08 22:58:42 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-08 22:58:42 -0600 |
commit | 0644076cbb731d1f7a55b66bf6d16a309cccea01 (patch) | |
tree | b51c18e826cf06c5b0a62080e0686920dc26fd35 /src/net | |
parent | 6099a24784843ac2c6eb4036f5c08bba2f9299c3 (diff) | |
download | mana-0644076cbb731d1f7a55b66bf6d16a309cccea01.tar.gz mana-0644076cbb731d1f7a55b66bf6d16a309cccea01.tar.bz2 mana-0644076cbb731d1f7a55b66bf6d16a309cccea01.tar.xz mana-0644076cbb731d1f7a55b66bf6d16a309cccea01.zip |
Forgot the actual storage window
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/inventoryhandler.cpp | 11 | ||||
-rw-r--r-- | src/net/playerhandler.cpp | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp index ebcca885..243d1e79 100644 --- a/src/net/inventoryhandler.cpp +++ b/src/net/inventoryhandler.cpp @@ -215,14 +215,13 @@ void InventoryHandler::handleMessage(MessageIn *msg) case SMSG_PLAYER_STORAGE_STATUS: /* - * Basic slots used vs total slots info - * We don't really need this information, but this is - * the closest we get to an "Open Storage" packet - * from the server. It always comes after the two - * SMSG_PLAYER_STORAGE_... packets that update - * storage contents. + * This is the closest we get to an "Open Storage" packet from the + * server. It always comes after the two SMSG_PLAYER_STORAGE_... + * packets that update storage contents. */ player_node->setInStorage(true); + msg->readInt16(); // Storage capacity + msg->readInt16(); // Used count break; case SMSG_PLAYER_STORAGE_ADD: diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index d99a97a5..4cc29568 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -39,6 +39,7 @@ #include "../gui/ok_dialog.h" #include "../gui/sell.h" #include "../gui/skill.h" +#include "../gui/storagewindow.h" #include "../gui/viewport.h" #include "../utils/stringutils.h" @@ -92,7 +93,8 @@ namespace { buyDialog->setVisible(false); sellDialog->setVisible(false); buySellDialog->setVisible(false); - current_npc = 0; + + if (storageWindow->isVisible()) storageWindow->close(); } } deathListener; } |