Skip to content

Commit

Permalink
protect only the inner tiles of the theme-room
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Aug 26, 2024
1 parent fab3b29 commit 8901ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ void InitThemes()
// select transval
themes[i]._tsTransVal = dTransVal[x1 + 1][y1 + 1];
assert(themes[i]._tsTransVal != 0);
// protect themes with dFlags
// protect themes with dFlags - TODO: extend the protection +1 to prevent overdrawn shrine and torch? unlikely + protection would prevent torches in theme rooms...
// v = themes[i]._tsTransVal;
for (x = x1; x <= x2; x++) {
for (y = y1; y <= y2; y++) {
for (x = x1; x < x2; x++) {
for (y = y1; y < y2; y++) {
// if (dTransVal[x][y] == v) { -- wall?
dFlags[x][y] |= BFLAG_MON_PROTECT | BFLAG_OBJ_PROTECT;
// }
Expand Down

0 comments on commit 8901ed4

Please sign in to comment.