mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[8846] corrections for my last commit
thx to vladimir and apoc :)
This commit is contained in:
parent
1d362eace4
commit
56d694b5fb
8 changed files with 38 additions and 39 deletions
|
|
@ -446,7 +446,7 @@ void Channel::List(Player* player)
|
|||
size_t pos = data.wpos();
|
||||
data << uint32(0); // size of list, placeholder
|
||||
|
||||
uint32 gmLevelInWhoList = sWorld.getConfig(CONFIG_GM_LEVEL_IN_WHO_LIST);
|
||||
AccountTypes gmLevelInWhoList = (AccountTypes)sWorld.getConfig(CONFIG_GM_LEVEL_IN_WHO_LIST);
|
||||
|
||||
uint32 count = 0;
|
||||
for(PlayerList::const_iterator i = players.begin(); i != players.end(); ++i)
|
||||
|
|
@ -455,8 +455,7 @@ void Channel::List(Player* player)
|
|||
|
||||
// PLAYER can't see MODERATOR, GAME MASTER, ADMINISTRATOR characters
|
||||
// MODERATOR, GAME MASTER, ADMINISTRATOR can see all
|
||||
if (plr && (player->GetSession()->GetSecurity() > SEC_PLAYER ||
|
||||
(uint32)plr->GetSession()->GetSecurity() <= gmLevelInWhoList) &&
|
||||
if (plr && (player->GetSession()->GetSecurity() > SEC_PLAYER || plr->GetSession()->GetSecurity() <= gmLevelInWhoList) &&
|
||||
plr->IsVisibleGloballyFor(player))
|
||||
{
|
||||
data << uint64(i->first);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue