Indicate high account level in logged player name

This commit is contained in:
Gent S 2020-12-15 09:53:45 -05:00
parent f74c40cf69
commit 792a317b48

View File

@ -907,7 +907,11 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) {
if (plr == nullptr) if (plr == nullptr)
return "NOT IN GAME"; return "NOT IN GAME";
std::string ret = U16toU8(plr->PCStyle.szFirstName) + " " + U16toU8(plr->PCStyle.szLastName); std::string ret = "";
if (id && plr->accountLevel <= 10)
ret += "(GM) ";
ret += U16toU8(plr->PCStyle.szFirstName) + " " + U16toU8(plr->PCStyle.szLastName);
if (id) if (id)
ret += " [" + std::to_string(plr->iID) + "]"; ret += " [" + std::to_string(plr->iID) + "]";