From aadf40739c45c3396ace5766dd9c60db0c3b1ccc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 17:45:27 +0300 Subject: Move relation enum into separate file. --- src/gui/windows/whoisonline.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/windows/whoisonline.cpp') diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index d0b896041..174b242dd 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -282,13 +282,13 @@ void WhoIsOnline::handlerPlayerRelation(const std::string &nick, { switch (player_relations.getRelation(nick)) { - case PlayerRelation::NEUTRAL: + case Relation::NEUTRAL: default: setNeutralColor(player); mNeutral.push_back(player); break; - case PlayerRelation::FRIEND: + case Relation::FRIEND: player->setText("2"); if (mGroupFriends) mFriends.push_back(player); @@ -296,19 +296,19 @@ void WhoIsOnline::handlerPlayerRelation(const std::string &nick, mNeutral.push_back(player); break; - case PlayerRelation::DISREGARDED: - case PlayerRelation::BLACKLISTED: + case Relation::DISREGARDED: + case Relation::BLACKLISTED: player->setText("8"); mDisregard.push_back(player); break; - case PlayerRelation::ENEMY2: + case Relation::ENEMY2: player->setText("1"); mEnemy.push_back(player); break; - case PlayerRelation::IGNORED: - case PlayerRelation::ERASED: + case Relation::IGNORED: + case Relation::ERASED: // Ignore the ignored. break; } -- cgit v1.2.3-60-g2f50