diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 12:52:08 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 12:52:08 +0000 |
commit | 8eb8602942d63661674d237d127c5f3ccfcf4ef4 (patch) | |
tree | 0d1e902e16c55f7742ead9a4c9f53506c373df48 /src/gui/sell.cpp | |
parent | d70c0ba4264dee317d1a60f2fa4d81f123dde016 (diff) | |
download | mana-8eb8602942d63661674d237d127c5f3ccfcf4ef4.tar.gz mana-8eb8602942d63661674d237d127c5f3ccfcf4ef4.tar.bz2 mana-8eb8602942d63661674d237d127c5f3ccfcf4ef4.tar.xz mana-8eb8602942d63661674d237d127c5f3ccfcf4ef4.zip |
Now shops get item names from the xml database
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index d4bd1d8a..2c9e8745 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -93,12 +93,7 @@ void SellDialog::addItem(short index, int price) int id = inventoryWindow->items->getId(index); ITEM_SHOP item_shop; - if (id >= 501 && id <= 2301) { - sprintf(item_shop.name, "%s %i gp", item_db[id - 501], price); - } - else { - sprintf(item_shop.name, "Unknown item %i gp", price); - } + sprintf(item_shop.name, "%s %i gp", itemDb.getName(id).c_str(), price); item_shop.price = price; item_shop.index = index; item_shop.id = id; |