summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-06-29 13:56:36 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-06-29 13:56:36 +0000
commit83282c3948f7f2af1e8b0d22d5ab2264c107b268 (patch)
treeb8c17e12040d158849c962d9cec58b81e3ae910f /src/player.cpp
parent4cd69c6a9327108a07d282011c14562e57aa9e86 (diff)
downloadmana-83282c3948f7f2af1e8b0d22d5ab2264c107b268.tar.gz
mana-83282c3948f7f2af1e8b0d22d5ab2264c107b268.tar.bz2
mana-83282c3948f7f2af1e8b0d22d5ab2264c107b268.tar.xz
mana-83282c3948f7f2af1e8b0d22d5ab2264c107b268.zip
Clients get notified of equipping visible items.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 847137e0..b014a390 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -131,14 +131,6 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY)
graphics->drawImage(playerset[mSex]->get(frame + 18 * dir),
px - 16, py - 32);
- // Display a shirt if equipped
- Item *item = mEquipment->getEquipment(8);
- if (item)
- {
- graphics->drawImage(equipmentset->get(frame + 18 * dir),
- px - 16, py - 32);
- }
-
if (getWeapon() != 0 && mAction == ATTACK)
{
int frames = 4;
@@ -158,6 +150,13 @@ void Player::draw(Graphics *graphics, int offsetX, int offsetY)
px + 1 + hairtable[frame][dir][0],
py - 33 + hairtable[frame][dir][1]);
}
+
+ // Display middle equipment
+ if (mVisibleEquipment[5])
+ {
+ graphics->drawImage(equipmentset->get(frame + 18 * dir),
+ px - 16, py - 32);
+ }
}
void