mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-20 17:20:12 +01:00
Fixed issue with mobs forgetting ANYONE who leaves the game.
This commit is contained in:
parent
45cf3ade34
commit
e37c9708dd
1 changed files with 2 additions and 1 deletions
|
|
@ -930,6 +930,7 @@ void extract_char_final(struct char_data *ch)
|
||||||
if (FIGHTING(k) == ch)
|
if (FIGHTING(k) == ch)
|
||||||
stop_fighting(k);
|
stop_fighting(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Whipe character from the memory of hunters and other intelligent NPCs... */
|
/* Whipe character from the memory of hunters and other intelligent NPCs... */
|
||||||
for (temp = character_list; temp; temp = temp->next) {
|
for (temp = character_list; temp; temp = temp->next) {
|
||||||
/* PCs can't use MEMORY, and don't use HUNTING() */
|
/* PCs can't use MEMORY, and don't use HUNTING() */
|
||||||
|
|
@ -940,7 +941,7 @@ void extract_char_final(struct char_data *ch)
|
||||||
HUNTING(temp) = NULL;
|
HUNTING(temp) = NULL;
|
||||||
/* If "temp" has allocated memory data and our ch is a PC, forget the
|
/* If "temp" has allocated memory data and our ch is a PC, forget the
|
||||||
* extracted character (if he/she is remembered) */
|
* extracted character (if he/she is remembered) */
|
||||||
if (!IS_NPC(ch) && MEMORY(temp))
|
if (!IS_NPC(ch) && GET_POS(ch) == POS_DEAD && MEMORY(temp))
|
||||||
forget(temp, ch); /* forget() is safe to use without a check. */
|
forget(temp, ch); /* forget() is safe to use without a check. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue