Skip to content

Commit

Permalink
fix the placement of lecterns in the skeleton rooms
Browse files Browse the repository at this point in the history
- prevent placement next to arches to avoid lockout
- allow placement next to 'lamps' in the cathedral
  • Loading branch information
pionere committed Jul 18, 2024
1 parent 2fc4edb commit b4ab769
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,13 @@ static void Theme_SkelRoom(int themeId, BYTE tv)
AddObject(OBJ_BANNERL, xx + 1, yy + 1);
}

if (dObject[xx][yy - 3] == 0) {
if ((dObject[xx][yy - 3] == 0 || !objects[dObject[xx][yy - 3] - 1]._oDoorFlag) // not a door
&& (nSolidTable[dPiece[xx][yy - 3]] || !nSolidTable[dPiece[xx + 1][yy - 3]])) { // or a single path to NE TODO: allow if !nSolidTable[dPiece[xx - 1][yy - 3]]?
// assert(dObject[xx][yy - 2] == 0);
AddObject(OBJ_BOOK2R, xx, yy - 2);
}
if (dObject[xx][yy + 3] == 0) {
if ((dObject[xx][yy + 3] == 0 || !objects[dObject[xx][yy + 3] - 1]._oDoorFlag) // not a door
&& (nSolidTable[dPiece[xx][yy + 3]] || !nSolidTable[dPiece[xx + 1][yy + 3]])) { // or a single path to SW TODO: allow if !nSolidTable[dPiece[xx - 1][yy + 3]]?
// assert(dObject[xx][yy + 2] == 0);
AddObject(OBJ_BOOK2R, xx, yy + 2);
}
Expand Down

0 comments on commit b4ab769

Please sign in to comment.