From e37c9708dd2a8cf6dfdc60f8a4992b413ef4a296 Mon Sep 17 00:00:00 2001 From: Vatiken Date: Thu, 9 Aug 2012 13:12:16 +0000 Subject: [PATCH] Fixed issue with mobs forgetting ANYONE who leaves the game. --- src/handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler.c b/src/handler.c index 9d69ec7..eb486bb 100644 --- a/src/handler.c +++ b/src/handler.c @@ -930,6 +930,7 @@ void extract_char_final(struct char_data *ch) if (FIGHTING(k) == ch) stop_fighting(k); } + /* Whipe character from the memory of hunters and other intelligent NPCs... */ for (temp = character_list; temp; temp = temp->next) { /* 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; /* If "temp" has allocated memory data and our ch is a PC, forget the * 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. */ }