summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-04-04 22:35:58 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-04-04 22:35:58 +0000
commitca03f5a83dbd379d21c20ed4e69ec6836395b694 (patch)
tree93b49faa836f53c3b65e9e78b55b9d5d487f5a7e /src/game.cpp
parentacb216cbbd50f68710502068bec83e073128d6fc (diff)
downloadmana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.gz
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.bz2
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.xz
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.zip
starting to do the trade window, i know it's not functionable and contains a lot of bugs but ill continue tomorrow.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b145190a..4b5bcf24 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -287,6 +287,12 @@ void do_input()
state = EXIT;
}
+ // Debug
+ if (keysym.sym == SDLK_t)
+ {
+ tradeWindow->setVisible(true);
+ }
+
if (keysym.sym == SDLK_g)
{
// Get the item code
@@ -779,8 +785,9 @@ void do_parse() {
case 0x01ee:
// Reset all items to not load them twice on map change
inventoryWindow->items->resetItems();
+
for (int loop = 0; loop < (RFIFOW(2) - 4) / 18; loop++) {
- inventoryWindow->addItem(RFIFOW(4 + loop * 18),
+ inventoryWindow->addItem(RFIFOW(4 + loop * 18),
RFIFOW(4 + loop * 18 + 2),
RFIFOW(4 + loop * 18 + 6), false);
// Trick because arrows are not considered equipment