Cured who list bug where mortals didn't show

This commit is contained in:
JamDog 2010-11-26 22:47:45 +00:00
parent 7bff0f37ad
commit 86f83bcc57
2 changed files with 5 additions and 2 deletions

View file

@ -40,6 +40,7 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
Advance command changed to work for both mortal and admin levels
Added increase_gold and increase_bank functions to prevent cash overflows
Added dupe check for new characters in char creation (thanks Mirad)
Bug-Fix: Since admin update, real mortals didn't show on who list
[Nov 25 2010] - Jamdog
Added diagonal directions with cedit toggle (default to 'off')
Bug-Fix: admin <player> default now targets the victim player

View file

@ -1251,9 +1251,11 @@ ACMD(do_who)
for (i = 0; *rank[i].disp != '\n'; i++)
if (GET_ADMLEVEL(tch) >= rank[i].min_level && GET_ADMLEVEL(tch) <= rank[i].max_level) {
if (rank[i].min_level >= ADMLVL_IMMORT && !PRF_FLAGGED(tch, PRF_MORTAL))
rank[i].count++;
rank[i].count++; /* Add 'real' admins */
else if (rank[i].max_level < ADMLVL_IMMORT)
rank[i].count++; /* Add 'real' mortals */
} else if (rank[i].max_level < ADMLVL_IMMORT && PRF_FLAGGED(tch, PRF_MORTAL))
rank[i].count++;
rank[i].count++; /* Add 'fake' mortals */
}
}