Skip to content

Commit b483bf7

Browse files
Respect name check flag in getPlayerName
1 parent 6ff5168 commit b483bf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PlayerManager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) {
620620
if (plr == nullptr)
621621
return "NOT IN GAME";
622622

623+
if (plr->PCStyle.iNameCheck == 0) {
624+
return "Player " + std::to_string(plr->iID);
625+
}
626+
623627
std::string ret = "";
624628
if (id && plr->accountLevel <= 30)
625629
ret += "(GM) ";

0 commit comments

Comments
 (0)