Browse Source

Transform Lazarus portal position to world space earlier

pull/5879/merge
obligaron 3 years ago committed by Anders Jenbo
parent
commit
f4b2fee532
  1. 2
      Source/levels/drlg_l4.cpp
  2. 3
      Source/quests.cpp

2
Source/levels/drlg_l4.cpp

@ -1188,7 +1188,7 @@ void GenerateLevel(lvl_entry entry)
if (IsAnyOf(dungeon[i][j], 98, 107)) {
Make_SetPC({ WorldTilePosition(i - 1, j - 1), { 5, 5 } });
// Set the portal position to the location of the northmost pentagram tile.
Quests[Q_BETRAYER].position = { i, j };
Quests[Q_BETRAYER].position = Point(i, j).megaToWorld();
}
}
}

3
Source/quests.cpp

@ -337,8 +337,7 @@ void CheckQuests()
&& quest._qvar1 >= 2
&& (quest._qactive == QUEST_ACTIVE || quest._qactive == QUEST_DONE)
&& (quest._qvar2 == 0 || quest._qvar2 == 2)) {
// Move the quest trigger into world space, then spawn a portal at the same location
quest.position = quest.position.megaToWorld();
// Spawn a portal at the quest trigger location
AddMissile(quest.position, quest.position, Direction::South, MissileID::RedPortal, TARGET_MONSTERS, MyPlayerId, 0, 0);
quest._qvar2 = 1;
if (quest._qactive == QUEST_ACTIVE && quest._qvar1 == 2) {

Loading…
Cancel
Save