diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-05-12 10:22:03 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-05-12 10:22:03 +0000 |
commit | 3ac438c461e66b50151579db3362cd939a41f83c (patch) | |
tree | b47f37d30734626c4944f925adf096559661cc64 /src/player.cpp | |
parent | 6c0e78de6eb137e75473e056eec238cd31b9e901 (diff) | |
download | mana-client-3ac438c461e66b50151579db3362cd939a41f83c.tar.gz mana-client-3ac438c461e66b50151579db3362cd939a41f83c.tar.bz2 mana-client-3ac438c461e66b50151579db3362cd939a41f83c.tar.xz mana-client-3ac438c461e66b50151579db3362cd939a41f83c.zip |
You can now see the shirt when equipping a top equipment.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index d13cd2f4..54075206 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -23,6 +23,7 @@ #include "player.h" +#include "equipment.h" #include "game.h" #include "graphics.h" @@ -33,6 +34,7 @@ extern std::vector<Spriteset *> hairset; extern Spriteset *playerset; extern std::vector<Spriteset *> weaponset; +extern Spriteset *equipmentset; signed char hairtable[19][4][2] = { // S(x,y) W(x,y) N(x,y) E(x,y) @@ -129,6 +131,13 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY) graphics->drawImage(playerset->get(frame + 18 * dir), px - 16, py - 32); + Item *item = mEquipment->getEquipment(3); + if (item) + { + graphics->drawImage(equipmentset->get(frame + 18 * dir), + px - 16, py - 32); + } + if (getWeapon() != 0 && mAction == ATTACK) { int frames = 4; |