From bd89e2f7a074f02429796c0e64806b4440a3989a Mon Sep 17 00:00:00 2001 From: Eric Robinson <68359262+kphoenix137@users.noreply.github.com> Date: Thu, 7 Mar 2024 09:49:04 -0500 Subject: [PATCH] Bugfix: Celia Infostring displaying after quest (#7009) --- Source/controls/plrctrls.cpp | 2 ++ Source/towners.h | 1 + 2 files changed, 3 insertions(+) diff --git a/Source/controls/plrctrls.cpp b/Source/controls/plrctrls.cpp index 19bbf10d458..aba2e782e43 100644 --- a/Source/controls/plrctrls.cpp +++ b/Source/controls/plrctrls.cpp @@ -221,6 +221,8 @@ void CheckTownersNearby() int distance = GetDistance(Towners[i].position, 2); if (distance == 0) continue; + if (!IsTownerPresent(Towners[i]._ttype)) + continue; pcursmonst = i; } } diff --git a/Source/towners.h b/Source/towners.h index 1788f53a155..3dc10026d10 100644 --- a/Source/towners.h +++ b/Source/towners.h @@ -72,6 +72,7 @@ struct Towner { }; extern Towner Towners[NUM_TOWNERS]; +bool IsTownerPresent(_talker_id npc); /** * @brief Maps from a _talker_id value to a pointer to the Towner object, if they have been initialised * @param type enum constant identifying the towner