summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-03-05 20:43:41 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-03-05 20:43:41 +0000
commitc545fc021ccdaa6a253eafd649b5aebdef677047 (patch)
tree5fc4eee703aaac9decb183adec130c3cd278ce47 /src/gui/inventory.cpp
parent1b637982b44635d6326dc8fd3b62d0d0aa731320 (diff)
downloadmana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.gz
mana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.bz2
mana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.xz
mana-c545fc021ccdaa6a253eafd649b5aebdef677047.zip
Now you can decide how many items to drop
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r--src/gui/inventory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 4681d047..4fc1bd1d 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -27,6 +27,7 @@
#include "../resources/image.h"
#include "button.h"
#include "../being.h"
+#include "../engine.h"
#include <sstream>
InventoryWindow::InventoryWindow():
@@ -140,8 +141,8 @@ void InventoryWindow::action(const std::string &eventId)
}
}
else if (eventId == "drop") {
- dropItem(items->getIndex(), items->getQuantity());
- // TODO: now drop all the items, you should choose quantity instead
+ itemAmountWindow->resetAmount();
+ itemAmountWindow->setVisible(true);
}
}
}