From d9813185f0f91a4254579ce04a3fe96bf13fe694 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Tue, 12 May 2009 22:15:20 +1200 Subject: Don't show Hp and maxHp for the local player in the party window It's already being displayed elsewhere, and it's partly broken anyway. --- src/gui/widgets/avatar.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/avatar.cpp b/src/gui/widgets/avatar.cpp index 116640d8..b120c51f 100644 --- a/src/gui/widgets/avatar.cpp +++ b/src/gui/widgets/avatar.cpp @@ -104,13 +104,7 @@ void Avatar::updateAvatarLabel() std::ostringstream ss; ss << mName; - if (mName == player_node->getName()) - { - mHp = player_node->getHp(); - mMaxHp = player_node->getMaxHp(); - } - - if (mMaxHp != 0) + if (mName != player_node->getName() && mMaxHp != 0) ss << " (" << mHp << "/" << mMaxHp << ")"; mLabel->setCaption(ss.str()); -- cgit v1.2.3-70-g09d2