summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@NOSPAM@hotmail.com>2009-05-12 22:15:20 +1200
committerJared Adams <jaxad0127@gmail.com>2009-05-12 07:18:13 -0600
commitd9813185f0f91a4254579ce04a3fe96bf13fe694 (patch)
tree66ffa33c11560205ff586142fa6fea7a55ff8408 /src/gui
parent5d1c423648bc138fe4a67908a0f16247a80e5967 (diff)
downloadmana-d9813185f0f91a4254579ce04a3fe96bf13fe694.tar.gz
mana-d9813185f0f91a4254579ce04a3fe96bf13fe694.tar.bz2
mana-d9813185f0f91a4254579ce04a3fe96bf13fe694.tar.xz
mana-d9813185f0f91a4254579ce04a3fe96bf13fe694.zip
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.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/avatar.cpp8
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());