Browse Source

Restore dropped cases for fence fix and vertical wall checks (#2353)

pull/2354/head
Andrew James 5 years ago committed by GitHub
parent
commit
4f73794a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/drlg_l3.cpp
  2. 2
      Source/drlg_l4.cpp

2
Source/drlg_l3.cpp

@ -1865,7 +1865,7 @@ void FenceDoorFix()
}
}
if (dungeon[i][j] == 146) {
if (IsNoneOf(dungeon[i + 1][j], 130, 132, 133, 145, 136, 138, 140) && IsNoneOf(dungeon[i - 1][j], 130, 132, 133, 145, 136, 138, 140)) {
if (IsNoneOf(dungeon[i + 1][j], 130, 132, 133, 134, 136, 138, 140) && IsNoneOf(dungeon[i - 1][j], 130, 132, 133, 134, 136, 138, 140)) {
dungeon[i][j] = 7;
continue;
}

2
Source/drlg_l4.cpp

@ -540,7 +540,7 @@ int VerticalWallOk(int i, int j)
}
}
if (IsAnyOf(dungeon[i][j + y], 9, 11, 14, 15, 16, 21, 23) && y > 3)
if (IsAnyOf(dungeon[i][j + y], 8, 9, 11, 14, 15, 16, 21, 23) && y > 3)
return y;
return -1;

Loading…
Cancel
Save