diff options
author | gumi <git@gumi.ca> | 2018-11-10 15:24:10 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-11-10 15:24:10 -0500 |
commit | 2aed9925f02f6b8604c1bc5e008798f12d5e2ee4 (patch) | |
tree | be46ed063622e8eed9e96b15e0edac6bb91f19e2 | |
parent | c82c9741bc1a0b110bccce1bcc76903a6e747a00 (diff) | |
download | tmwa-2aed9925f02f6b8604c1bc5e008798f12d5e2ee4.tar.gz tmwa-2aed9925f02f6b8604c1bc5e008798f12d5e2ee4.tar.bz2 tmwa-2aed9925f02f6b8604c1bc5e008798f12d5e2ee4.tar.xz tmwa-2aed9925f02f6b8604c1bc5e008798f12d5e2ee4.zip |
don't display (GM) for non-60 in the txt online listv18.11.10
-rw-r--r-- | src/char/char.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index b9b1f60..7ab72fb 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -824,7 +824,7 @@ void create_online_files(void) GmLevel gml = isGM(cd.key.account_id); { if ((gml.satisfies(char_conf.online_gm_display_min_level) && - !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32))) + !(gml.get_all_bits() == 60)) || gml.satisfies(GmLevel::from(99_u32))) FPRINTF(fp, "%-24s (GM) "_fmt, cd.key.name); else FPRINTF(fp, "%-24s "_fmt, cd.key.name); @@ -853,8 +853,21 @@ void create_online_files(void) }; } if ((gml.satisfies(char_conf.online_gm_display_min_level) && - !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32))) - FPRINTF(fp2, "</b> (GM)"_fmt); + !(gml.get_all_bits() % 10)) || gml.satisfies(GmLevel::from(99_u32))) { + if (gml.get_all_bits() == 40) { + FPRINTF(fp2, "</b> (DEV)"_fmt); + } if (gml.get_all_bits() == 50) { + FPRINTF(fp2, "</b> (EVTC)"_fmt); + } if (gml.get_all_bits() == 60) { + FPRINTF(fp2, "</b> (GM)"_fmt); + } if (gml.get_all_bits() == 80) { + FPRINTF(fp2, "</b> (DEV)"_fmt); + } if (gml.get_all_bits() == 99) { + FPRINTF(fp2, "</b> (ADM)"_fmt); + } else { + FPRINTF(fp2, "</b>"_fmt); + } + } FPRINTF(fp2, "</td>\n"_fmt); } FPRINTF(fp, "\n"_fmt); |