From 3e026f7efc76b0e6e76177d04c989432cb517b7a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Feb 2012 03:29:34 +0300 Subject: Fix manaplus clients name highlight in evol server. Before was all highlighted. --- src/being.cpp | 2 +- src/gui/whoisonline.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/being.cpp b/src/being.cpp index b5f55592f..2d8bc042c 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2525,7 +2525,6 @@ void Being::saveComment(const std::string &name, void Being::setState(Uint8 state) { - mAdvanced = true; bool shop = (state & FLAG_SHOP); bool away = (state & FLAG_AWAY); bool inactive = (state & FLAG_INACTIVE); @@ -2548,6 +2547,7 @@ void Being::setEmote(Uint8 emotion, int emote_time) if ((emotion & FLAG_SPECIAL) == FLAG_SPECIAL) { setState(emotion); + mAdvanced = true; } else { diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 15c8a42c4..eba058bd7 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -738,7 +738,12 @@ void OnlinePlayer::setText(std::string color) Being *being = actorSpriteManager->findBeingByName( mNick, Being::PLAYER); if (being) + { being->setState(mStatus); + // for now highlight versions > 3 + if (mVersion > 3) + being->setAdvanced(true); + } } if (mLevel > 0) -- cgit v1.2.3-70-g09d2