From 208dcc64cdb4905e637228e23213b0d3b63c82a9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 28 Dec 2004 22:15:14 +0000 Subject: A few cleanups and small fix to sell dialog. --- src/gui/shop.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/gui/shop.cpp') 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; -- cgit v1.2.3-70-g09d2