Tweak mob roaming logic and a few other values

This fixes the crash with mobs with a very small m_iIdleRange and avoids
unnecessary looping.

Co-authored-by: JadeShrineMaiden <69916714+JadeShrineMaiden@users.noreply.github.com>
This commit is contained in:
2020-12-17 01:59:55 +01:00
parent 618a8d0a9f
commit f7a6615379
5 changed files with 20 additions and 14 deletions

View File

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