From f84626346276eed5d94263366fb4d73a5c8f90f0 Mon Sep 17 00:00:00 2001 From: Andrew James Date: Mon, 20 Jun 2022 18:15:10 +1000 Subject: [PATCH] Restore change to trigger position when advancing betrayer quest (#4752) --- Source/quests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/quests.cpp b/Source/quests.cpp index c73730cc3..4cefecfc7 100644 --- a/Source/quests.cpp +++ b/Source/quests.cpp @@ -329,8 +329,9 @@ void CheckQuests() && quest._qvar1 >= 2 && (quest._qactive == QUEST_ACTIVE || quest._qactive == QUEST_DONE) && (quest._qvar2 == 0 || quest._qvar2 == 2)) { - Point portalLocation = quest.position.megaToWorld(); - AddMissile(portalLocation, portalLocation, Direction::South, MIS_RPORTAL, TARGET_MONSTERS, MyPlayerId, 0, 0); + // Move the quest trigger into world space, then spawn a portal at the same location + quest.position = quest.position.megaToWorld(); + AddMissile(quest.position, quest.position, Direction::South, MIS_RPORTAL, TARGET_MONSTERS, MyPlayerId, 0, 0); quest._qvar2 = 1; if (quest._qactive == QUEST_ACTIVE && quest._qvar1 == 2) { quest._qvar1 = 3;