mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-01 01:47:19 +02:00
Fix player menu change after death
This commit is contained in:
parent
8fe4702bbc
commit
b8e581884b
1 changed files with 7 additions and 0 deletions
|
|
@ -985,6 +985,13 @@ void extract_char_final(struct char_data *ch)
|
|||
STATE(d) = CON_CLOSE;
|
||||
}
|
||||
if (GET_POS(ch) == POS_DEAD) {
|
||||
int pfilepos = GET_PFILEPOS(ch);
|
||||
|
||||
if (pfilepos < 0)
|
||||
pfilepos = get_ptable_by_name(GET_NAME(ch));
|
||||
if (pfilepos >= 0)
|
||||
SET_BIT(player_table[pfilepos].flags, PINDEX_DELETED);
|
||||
|
||||
STATE(ch->desc) = CON_ACCOUNT_MENU;
|
||||
send_account_menu(ch->desc);
|
||||
ch->desc->character = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue