Skip to content

Commit

Permalink
Pools no longer block line-of-sight.
Browse files Browse the repository at this point in the history
  • Loading branch information
thebracket committed Jan 12, 2018
1 parent e8e1aa5 commit 6d95047
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cpp/play_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ void play_mode_t::cast_visibility() {
},
[this] (position_t pos) {
if (pos.x > 0 && pos.x < level_width && pos.y > 0 && pos.y < level_height) {
return !tile_solid[this->mapidx(pos.x, pos.y)];
const int idx = this->mapidx(pos.x, pos.y);
if (tile_render[idx].glyph == '~') return true;
return !tile_solid[idx];
} else {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions node/dankest-dungeon/public/dankest.js

Large diffs are not rendered by default.

0 comments on commit 6d95047

Please sign in to comment.