diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-07 17:08:52 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-07 19:02:35 +0100 |
commit | e5d02f46f34e0bf1c458880db46f252b8ad0db94 (patch) | |
tree | 913c1cffb599eb60e551d9617eb7df0fe17dd601 /crawl-ref | |
parent | 14d28e2628713bb0d5aba196092ef93e2ae5390d (diff) | |
download | crawl-ref-e5d02f46f34e0bf1c458880db46f252b8ad0db94.tar.gz crawl-ref-e5d02f46f34e0bf1c458880db46f252b8ad0db94.zip |
Reuse "out of range" tile for movement restrictions when mesmerised.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/view.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index e5d54546a3..5d3071c513 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -949,7 +949,7 @@ void viewwindow(bool monster_updates, bool show_updates) flash_colour = _viewmap_flash_colour(); const coord_def &tl = crawl_view.viewp; - const coord_def br = tl + crawl_view.viewsz - coord_def(1,1); + const coord_def br = tl + crawl_view.viewsz - coord_def(1,1); int bufcount = 0; for (rectangle_iterator ri(tl, br); ri; ++ri, bufcount += 2) { @@ -992,6 +992,14 @@ void viewwindow(bool monster_updates, bool show_updates) buffy[bufcount + 1] |= TILE_FLAG_OOR; #endif } +#ifdef USE_TILE + // Grey out grids that cannot be reached due to beholders. + else if (/*you.see_cell(gc) && grd(gc) >= DNGN_MINMOVE + && */you.get_beholder(gc)) + { + buffy[bufcount + 1] |= TILE_FLAG_OOR; + } +#endif } // Leaving it this way because short flashes can occur in long ones, |