mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-16 12:48:07 +01:00
Stop snooping at do_quit, added afk to prompt, g++ compiler cleanup (thanks Rhade), fixed locate object (thanks JamDog), and renamed immort_level_ok to no_mort_to_immort --Rumble
This commit is contained in:
parent
86568f9d4d
commit
1f74a71456
18 changed files with 445 additions and 949 deletions
|
|
@ -1219,6 +1219,12 @@ char *make_prompt(struct descriptor_data *d)
|
|||
len += count;
|
||||
}
|
||||
|
||||
if (PRF_FLAGGED(d->character, PRF_AFK) && len < sizeof(prompt)) {
|
||||
count = snprintf(prompt + len, sizeof(prompt) - len, "AFK ");
|
||||
if (count >= 0)
|
||||
len += count;
|
||||
}
|
||||
|
||||
if (len < sizeof(prompt))
|
||||
strncat(prompt, "> ", sizeof(prompt) - len - 1); /* strncat: OK */
|
||||
} else if (STATE(d) == CON_PLAYING && IS_NPC(d->character))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue