diff options
-rw-r--r-- | src/gui/widgets/avatar.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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()); |