summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-18 09:26:48 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-18 09:27:38 +0100
commitb96b6dccf33ba3cf2b179f044dc3c62e80960147 (patch)
tree2a5ab4c7ccf4070d67a0d74be78b352bd97c75bb /crawl-ref/source/view.cc
parent4cb74bb382b9159a3a93058a147161710e87089b (diff)
downloadcrawl-ref-b96b6dccf33ba3cf2b179f044dc3c62e80960147.tar.gz
crawl-ref-b96b6dccf33ba3cf2b179f044dc3c62e80960147.zip
Remove now-redundant bounds check from tile_draw_floor.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index df3b1a62d5..f91ba57993 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -735,11 +735,11 @@ void tile_draw_floor()
int bg = TILE_DNGN_UNSEEN | tile_unseen_flag(gc);
- if (in_bounds(gc) && you.see_cell(gc))
+ if (you.see_cell(gc))
{
dungeon_feature_type feat = grid_appearance(gc);
bg = tileidx_feature(feat, gc.x, gc.y);
-
+
if (feat == DNGN_DETECTED_SECRET_DOOR)
bg |= TILE_FLAG_WAS_SECRET;
else if (is_unknown_stair(gc))