summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-07-03 21:05:19 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-07-03 21:05:19 +0000
commite3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939 (patch)
tree77afd116346f3e107c80c4126c8e44399ec24f11 /src/player.cpp
parent852626d562a6b40f37a25dc2784492ede80ee78b (diff)
downloadmana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.gz
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.bz2
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.xz
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.zip
Fixed visible equipment initialization and hack to see 2 kinds of visible equipments.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player.cpp b/src/player.cpp
index b014a390..43439ab1 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -34,7 +34,7 @@
extern std::vector<Spriteset *> hairset;
extern Spriteset *playerset[2];
extern std::vector<Spriteset *> weaponset;
-extern Spriteset *equipmentset;
+extern Spriteset *equipmentset[2];
signed char hairtable[19][4][2] = {
// S(x,y) W(x,y) N(x,y) E(x,y)
@@ -154,7 +154,8 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY)
// Display middle equipment
if (mVisibleEquipment[5])
{
- graphics->drawImage(equipmentset->get(frame + 18 * dir),
+ graphics->drawImage(
+ equipmentset[mVisibleEquipment[5] - 1]->get(frame + 18 * dir),
px - 16, py - 32);
}
}