summaryrefslogtreecommitdiff
path: root/src/gui/shop.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-28 22:15:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-28 22:15:14 +0000
commit208dcc64cdb4905e637228e23213b0d3b63c82a9 (patch)
tree450b46e11702d7980375ae5ef817456ec033ceb9 /src/gui/shop.cpp
parentd9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331 (diff)
downloadMana-208dcc64cdb4905e637228e23213b0d3b63c82a9.tar.gz
Mana-208dcc64cdb4905e637228e23213b0d3b63c82a9.tar.bz2
Mana-208dcc64cdb4905e637228e23213b0d3b63c82a9.tar.xz
Mana-208dcc64cdb4905e637228e23213b0d3b63c82a9.zip
A few cleanups and small fix to sell dialog.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r--src/gui/shop.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index c7bf5967..cc9d80ab 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -48,28 +48,6 @@ char *shop_list(int index, int *list_size) {
}
}
-void add_sell_item(short index, int price) {
- int id = inventoryWindow->items[index].id;
- ITEM_SHOP *item_shop = (ITEM_SHOP *)malloc(sizeof(ITEM_SHOP));
- if (id >= 501 && id <= 511)
- sprintf(item_shop->name, "%s %i gp", item_db[id-501], price);
- else
- sprintf(item_shop->name, "Unknown item %i gp", price);
- item_shop->price = price;
- item_shop->index = index;
- item_shop->id = id;
- item_shop->quantity = inventoryWindow->items[index].quantity;
- item_shop->next = NULL;
- if (shop == NULL)
- shop = item_shop;
- else {
- ITEM_SHOP *temp = shop;
- while(temp->next)
- temp = temp->next;
- temp->next = item_shop;
- }
-}
-
void close_shop() {
ITEM_SHOP *temp, *next;
temp = shop;