Cured who list bug where mortals didn't show
This commit is contained in:
@@ -40,6 +40,7 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
|||||||
Advance command changed to work for both mortal and admin levels
|
Advance command changed to work for both mortal and admin levels
|
||||||
Added increase_gold and increase_bank functions to prevent cash overflows
|
Added increase_gold and increase_bank functions to prevent cash overflows
|
||||||
Added dupe check for new characters in char creation (thanks Mirad)
|
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
|
[Nov 25 2010] - Jamdog
|
||||||
Added diagonal directions with cedit toggle (default to 'off')
|
Added diagonal directions with cedit toggle (default to 'off')
|
||||||
Bug-Fix: admin <player> default now targets the victim player
|
Bug-Fix: admin <player> default now targets the victim player
|
||||||
|
|||||||
@@ -1251,9 +1251,11 @@ ACMD(do_who)
|
|||||||
for (i = 0; *rank[i].disp != '\n'; i++)
|
for (i = 0; *rank[i].disp != '\n'; i++)
|
||||||
if (GET_ADMLEVEL(tch) >= rank[i].min_level && GET_ADMLEVEL(tch) <= rank[i].max_level) {
|
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))
|
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))
|
} else if (rank[i].max_level < ADMLVL_IMMORT && PRF_FLAGGED(tch, PRF_MORTAL))
|
||||||
rank[i].count++;
|
rank[i].count++; /* Add 'fake' mortals */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user