diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 13:36:17 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 13:36:17 +0000 |
commit | 9db3ea6a43d78bc959eef9fd594141d3a4063c0b (patch) | |
tree | f476b0ab26de1ce6748898ce0a7a293dac974a3e /src/engine.cpp | |
parent | 8eb8602942d63661674d237d127c5f3ccfcf4ef4 (diff) | |
download | mana-client-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.gz mana-client-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.bz2 mana-client-9db3ea6a43d78bc959eef9fd594141d3a4063c0b.tar.xz mana-client-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/engine.cpp')
-rw-r--r-- | src/engine.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index d1feacf2..8a421041 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -341,10 +341,9 @@ void Engine::draw() int sy = y - camera_y; int absx = sx * 32 - offset_x; int absy = sy * 32 - offset_y; - if (floorItem->id >= 501 && floorItem->id <= 1202) { - itemset->spriteset[floorItem->id - 501]->draw(screen, - absx, - absy); + if (itemDb.getImage(floorItem->id) > 0) { + itemset->spriteset[itemDb.getImage(floorItem->id) - 1]->draw(screen, + absx, absy); } floorItemIterator++; |