From fc8882b7dbd6f351d4b0c2c386ce4b8ca60c05b6 Mon Sep 17 00:00:00 2001 From: Adam Newgas Date: Sun, 14 Jul 2019 09:39:01 +0100 Subject: [PATCH] Add some bugfix notes. --- Source/drlg_l2.cpp | 1 + Source/drlg_l3.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/drlg_l2.cpp b/Source/drlg_l2.cpp index edb2e813c..f290d601c 100644 --- a/Source/drlg_l2.cpp +++ b/Source/drlg_l2.cpp @@ -1298,6 +1298,7 @@ void DefineRoom(int nX1, int nY1, int nX2, int nY2, BOOL ForceHW) if (ForceHW == TRUE) { for (i = nX1; i < nX2; i++) { + /// BUGFIX: Should loop j between nY1 and nY2 instead of always using nY1. while (i < nY2) { dflags[i][nY1] |= DLRG_PROTECTED; i++; diff --git a/Source/drlg_l3.cpp b/Source/drlg_l3.cpp index bbf939520..8ab1436a6 100644 --- a/Source/drlg_l3.cpp +++ b/Source/drlg_l3.cpp @@ -1307,6 +1307,7 @@ void DRLG_L3PlaceRndSet(const BYTE *miniset, int rndper) kk = sw * sh + 2; if (miniset[kk] >= 84 && miniset[kk] <= 100 && found == TRUE) { // BUGFIX: accesses to dungeon can go out of bounds + // BUGFIX: Comparisons vs 100 should use same tile as comparisons vs 84. if (dungeon[sx - 1][sy] >= 84 && dungeon[sx - 1][sy] <= 100) { found = FALSE; }