summaryrefslogtreecommitdiff
path: root/src/gui/equipment.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 13:36:17 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 13:36:17 +0000
commit9db3ea6a43d78bc959eef9fd594141d3a4063c0b (patch)
treef476b0ab26de1ce6748898ce0a7a293dac974a3e /src/gui/equipment.cpp
parent8eb8602942d63661674d237d127c5f3ccfcf4ef4 (diff)
downloadmana-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.gz
mana-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.bz2
mana-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.xz
mana-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.zip
Items are now displayed using database image field, this way I could also reduce a lot items.png size
Diffstat (limited to 'src/gui/equipment.cpp')
-rw-r--r--src/gui/equipment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/equipment.cpp b/src/gui/equipment.cpp
index a29c137f..1c559263 100644
--- a/src/gui/equipment.cpp
+++ b/src/gui/equipment.cpp
@@ -58,8 +58,8 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
for (int i = 0; i < 8; i++) {
if (equipments[i].id > 0) {
- itemset->spriteset[equipments[i].id - 501]->draw(screen,
- x + 22, y + 24 * i + 20);
+ itemset->spriteset[itemDb.getImage(equipments[i].id) - 1]->draw(
+ screen, x + 22, y + 24 * i + 20);
}
graphics->setColor(gcn::Color(0, 0, 0));
graphics->drawRectangle(gcn::Rectangle(22, 24 * i + 20, 20, 20));