diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 22:15:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 22:15:14 +0000 |
commit | 208dcc64cdb4905e637228e23213b0d3b63c82a9 (patch) | |
tree | 450b46e11702d7980375ae5ef817456ec033ceb9 /src/gui/shop.cpp | |
parent | d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331 (diff) | |
download | mana-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.cpp | 22 |
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; |