Browse Source

Remove old dungeon reroll bugfix

pull/4054/head
obligaron 4 years ago committed by Anders Jenbo
parent
commit
90fbf1c535
  1. 26
      Source/drlg_l2.cpp

26
Source/drlg_l2.cpp

@ -2899,10 +2899,6 @@ void GenerateLevel(lvl_entry entry)
bool doneflag = false;
while (!doneflag) {
nRoomCnt = 0;
nSx1 = 0;
nSy1 = 0;
nSx2 = 0;
nSy2 = 0;
InitDungeonFlags();
DRLG_InitTrans();
if (!CreateDungeon()) {
@ -3149,24 +3145,10 @@ void LoadPreL2Dungeon(const char *path)
void CreateL2Dungeon(uint32_t rseed, lvl_entry entry)
{
if (!gbIsMultiplayer) {
if (currlevel == 7 && Quests[Q_BLIND]._qactive == QUEST_NOTAVAIL) {
currlevel = 6;
CreateL2Dungeon(glSeedTbl[6], ENTRY_LOAD);
currlevel = 7;
}
if (currlevel == 8) {
if (Quests[Q_BLIND]._qactive == QUEST_NOTAVAIL) {
currlevel = 6;
CreateL2Dungeon(glSeedTbl[6], ENTRY_LOAD);
currlevel = 8;
} else {
currlevel = 7;
CreateL2Dungeon(glSeedTbl[7], ENTRY_LOAD);
currlevel = 8;
}
}
}
nSx1 = -1;
nSy1 = -1;
nSx2 = -1;
nSy2 = -1;
SetRndSeed(rseed);

Loading…
Cancel
Save