From 792a317b48c45de298ba87469d5eacfb7e8cda13 Mon Sep 17 00:00:00 2001 From: Gent S Date: Tue, 15 Dec 2020 09:53:45 -0500 Subject: [PATCH] Indicate high account level in logged player name --- src/PlayerManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PlayerManager.cpp b/src/PlayerManager.cpp index a021daf..55eeea7 100644 --- a/src/PlayerManager.cpp +++ b/src/PlayerManager.cpp @@ -907,7 +907,11 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) { if (plr == nullptr) 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) ret += " [" + std::to_string(plr->iID) + "]";