From 655a5da53eccead08960fa95c0a00201a1c0c7a8 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Tue, 2 May 2023 17:51:00 +1000 Subject: [PATCH] Make the poison water quest visible in the log when the level is cleared Just in case the player skips talking to pepin and clears the whole quest, make the entry visible in the log. --- Source/quests.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Source/quests.cpp b/Source/quests.cpp index 4a984818e..78ae3a731 100644 --- a/Source/quests.cpp +++ b/Source/quests.cpp @@ -355,13 +355,15 @@ void CheckQuests() } if (setlevel) { - if (setlvlnum == Quests[Q_PWATER]._qslvl - && Quests[Q_PWATER]._qactive != QUEST_INIT - && leveltype == Quests[Q_PWATER]._qlvltype + Quest &poisonWater = Quests[Q_PWATER]; + if (setlvlnum == poisonWater._qslvl + && poisonWater._qactive != QUEST_INIT + && leveltype == poisonWater._qlvltype && ActiveMonsterCount == 4 - && Quests[Q_PWATER]._qactive != QUEST_DONE) { - Quests[Q_PWATER]._qactive = QUEST_DONE; - NetSendCmdQuest(true, Quests[Q_PWATER]); + && poisonWater._qactive != QUEST_DONE) { + poisonWater._qactive = QUEST_DONE; + poisonWater._qlog = true; // even if the player skips talking to Pepin completely they should at least notice the water being purified once they cleanse the level + NetSendCmdQuest(true, poisonWater); StartPWaterPurify(); } } else if (MyPlayer->_pmode == PM_STAND) {