From 9a5ff805ed0c70d95e973012c93ae3dbea8245cb Mon Sep 17 00:00:00 2001 From: qndel Date: Tue, 14 Apr 2020 03:24:49 +0200 Subject: [PATCH] Remove hardcoded spawn location for Cave maps --- Source/drlg_l3.cpp | 4 ++-- Source/setmaps.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/drlg_l3.cpp b/Source/drlg_l3.cpp index 6a72f570b..8da6180ee 100644 --- a/Source/drlg_l3.cpp +++ b/Source/drlg_l3.cpp @@ -1751,8 +1751,8 @@ void LoadL3Dungeon(char *sFileName, int vx, int vy) abyssx = MAXDUNX; // Unused DRLG_L3Pass3(); DRLG_Init_Globals(); - ViewX = 31; - ViewY = 83; + ViewX = vx; + ViewY = vy; SetMapMonsters(pLevelMap, 0, 0); SetMapObjects(pLevelMap, 0, 0); diff --git a/Source/setmaps.cpp b/Source/setmaps.cpp index ac9c371dd..b636008c2 100644 --- a/Source/setmaps.cpp +++ b/Source/setmaps.cpp @@ -172,7 +172,7 @@ void LoadSetMap() if (quests[Q_PWATER]._qactive == QUEST_INIT) quests[Q_PWATER]._qactive = QUEST_ACTIVE; LoadPreL3Dungeon("Levels\\L3Data\\Foulwatr.DUN", 19, 50); - LoadL3Dungeon("Levels\\L3Data\\Foulwatr.DUN", 20, 50); + LoadL3Dungeon("Levels\\L3Data\\Foulwatr.DUN", 31, 81); LoadPalette("Levels\\L3Data\\L3pfoul.pal"); InitPWaterTriggers(); break;