summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-25 18:09:30 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-25 18:09:30 +0000
commitd855488fdc9830c00ed3ce71532cfd52316988f1 (patch)
treea241ce6d0da88148e9b9024ec8adbe16148aff0f /src/gui/buy.cpp
parent7369c775464aa9eae7a98bb935442b2fa2992f8e (diff)
downloadmana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.gz
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.bz2
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.tar.xz
mana-d855488fdc9830c00ed3ce71532cfd52316988f1.zip
Fixing equipment and shops according to the new server script
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index 059ba4e8..ab350363 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -44,6 +44,7 @@ BuyDialog::BuyDialog():
setSize(260, 175);
scrollArea->setDimension(gcn::Rectangle(5, 5, 250, 110));
+ itemList->setDimension(gcn::Rectangle(5, 5, 240, 110));
slider->setDimension(gcn::Rectangle(5, 120, 200, 10));
quantityLabel->setPosition(215, 120);
moneyLabel->setPosition(5, 135);
@@ -99,7 +100,7 @@ void BuyDialog::addItem(short id, int price)
{
ITEM_SHOP item_shop;
- if (id - 501 >= 0 && id - 501 <= 11) {
+ if (id >= 501 && id <= 2301) {
sprintf(item_shop.name, "%s %i gp", item_db[id - 501], price);
}
else {