diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-12 20:30:46 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-12 20:31:24 +0200 |
commit | c6a2f58d221247456946100082a580cce9733917 (patch) | |
tree | 36c3f43d1ea5973537613cf761a3300689c5d31b /src/player.cpp | |
parent | 057c4592a0260af3efca3f7871abf24d8ed77c5d (diff) | |
download | mana-client-c6a2f58d221247456946100082a580cce9733917.tar.gz mana-client-c6a2f58d221247456946100082a580cce9733917.tar.bz2 mana-client-c6a2f58d221247456946100082a580cce9733917.tar.xz mana-client-c6a2f58d221247456946100082a580cce9733917.zip |
Some small cleanups and fixed compile with tmwserv support
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) |