diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 21:36:49 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 21:36:49 +0000 |
commit | d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331 (patch) | |
tree | 2322671cc5455a0b4ded770ba3291873e181413c /src/gui/shop.cpp | |
parent | c6213e58858a1fbe3c28ca79ed5a5c32976fac1f (diff) | |
download | mana-d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331.tar.gz mana-d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331.tar.bz2 mana-d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331.tar.xz mana-d9b0d3ec1d3af85bfe35a7dd5d4d2ee2a9fb8331.zip |
Ported sell dialog to Guichan.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r-- | src/gui/shop.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp index 4cdfd9f4..c7bf5967 100644 --- a/src/gui/shop.cpp +++ b/src/gui/shop.cpp @@ -48,25 +48,6 @@ char *shop_list(int index, int *list_size) { } } -void add_buy_item(short id, int price) { - ITEM_SHOP *item_shop = (ITEM_SHOP *)malloc(sizeof(ITEM_SHOP)); - if(id-501>=0 && id-501<=11) - 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->id = id; - 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 add_sell_item(short index, int price) { int id = inventoryWindow->items[index].id; ITEM_SHOP *item_shop = (ITEM_SHOP *)malloc(sizeof(ITEM_SHOP)); |