Browse Source

Restore change to trigger position when advancing betrayer quest (#4752)

pull/4755/head
Andrew James 4 years ago committed by GitHub
parent
commit
f846263462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Source/quests.cpp

5
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;

Loading…
Cancel
Save