Browse Source

Add some bugfix notes.

pull/197/head
Adam Newgas 7 years ago committed by Anders Jenbo
parent
commit
fc8882b7db
  1. 1
      Source/drlg_l2.cpp
  2. 1
      Source/drlg_l3.cpp

1
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++;

1
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;
}

Loading…
Cancel
Save