diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/player.cpp b/src/player.cpp index e797fdfe..b7370e03 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -300,12 +300,15 @@ short Player::getNumberOfGuilds() #endif -void Player::setInParty(bool value) +void Player::setInParty(bool inParty) { - mInParty = value; + mInParty = inParty; if (this != player_node && mName) - mName->setColor(&guiPalette->getColor(value ? Palette::PARTY : Palette::PC)); + { + Palette::ColorType colorType = mInParty ? Palette::PARTY : Palette::PC; + mName->setColor(&guiPalette->getColor(colorType)); + } } void Player::optionChanged(const std::string &value) |