summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/player.cpp b/src/player.cpp
index d6f1a43f..f658b8b5 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -69,19 +69,20 @@ void Player::setName(const std::string &name)
&guiPalette->getColor(Palette::GM_NAME));
}
else
- {
+ {
+ mNameColor = &guiPalette->getColor(Palette::PLAYER);
+
const gcn::Color *color;
if (this == player_node)
{
- color = mNameColor = &guiPalette->getColor(Palette::SELF);
+ color = &guiPalette->getColor(Palette::SELF);
}
else if (partyWindow->findMember(getId()))
{
- color = mNameColor = &guiPalette->getColor(Palette::PARTY);
+ color = &guiPalette->getColor(Palette::PARTY);
}
else
{
- mNameColor = &guiPalette->getColor(Palette::PLAYER);
color = &guiPalette->getColor(Palette::PC);
}