From 83282c3948f7f2af1e8b0d22d5ab2264c107b268 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Thu, 29 Jun 2006 13:56:36 +0000 Subject: Clients get notified of equipping visible items. --- src/player.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/player.cpp') 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 -- cgit v1.2.3-70-g09d2