From 86f83bcc5748fc4625d56c50c16af00277f27196 Mon Sep 17 00:00:00 2001 From: JamDog Date: Fri, 26 Nov 2010 22:47:45 +0000 Subject: [PATCH] Cured who list bug where mortals didn't show --- changelog | 1 + src/act.informative.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog b/changelog index 6b69629..758d0cd 100644 --- a/changelog +++ b/changelog @@ -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 default now targets the victim player diff --git a/src/act.informative.c b/src/act.informative.c index 7dbe1cc..b4c3b88 100644 --- a/src/act.informative.c +++ b/src/act.informative.c @@ -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 */ } }